UNPKG

highcharts-multicolor-series

Version:

Highcharts plugin that adds new series: multicolor-series, where you can define color for each part of a path, between two points.

29 lines (22 loc) 614 B
import type SVGPath from "highcharts-github/ts/Core/Renderer/SVG/SVGPath"; import type ColorType from "highcharts-github/ts/Core/Color/ColorType"; /** * * Shared types * */ type SeriesColoredPoint<T> = T & { segmentColor?: string; }; type SeriesColoredSegment<T> = { color: string; points: Array<SeriesColoredPoint<T>>; }; type SeriesColoredSegmentPath = SVGPath.Segment | string | number | undefined; type SeriesColoredGraphPath = [SeriesColoredSegmentPath[], ColorType]; export { SeriesColoredPoint, SeriesColoredSegment, SeriesColoredSegmentPath, SeriesColoredGraphPath };