Per-series colour
native
Set the colour of a series explicitly
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.color.
Source: chartkit:packages/core/src/generated/schema.ts:146
No spec snippet. This row is not a single chart option validate() can show.
Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: mark.color.series.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.data.datasets.borderColor, ChartConfiguration.data.datasets.backgroundColor | types · strong | chart.js/dist/types/index.d.ts:1827 |
| Recharts | native | Line.stroke, Bar.fill | types · strong | @types/react/index.d.ts:3922 |
| Apache ECharts | native | series.itemStyle.color, series.lineStyle.color | types · strong | echarts/types/dist/shared.d.ts:7768 |
| Highcharts | native | series.color | types · strong | highcharts/options/abands.d.ts:645 |
| Plotly.js | native | trace.marker.color, trace.line.color | types · strong | plot-schema.json#traces.{bar,barpolar,box,funnel,histogram,histogram2d,…}.attributes.marker.color |
| Nivo | native | Line.colors | types · strong | @nivo/line/dist/types/types.d.ts:137 |
| Victory | native | VictoryLine.style | types · strong | victory-line/lib/victory-line.d.ts:84 |
| visx | native | LinePath.stroke | types · strong | @types/react/index.d.ts:3922 |
| ApexCharts | native | colors | types · strong | apexcharts/types/apexcharts.d.ts:1457 |
| Tremor (npm) | native | LineChart.colors | types · strong | @tremor/react/dist/index.d.ts:59 |
| Observable Plot | native | grep: strokechannel or constant | grep · weak | @observablehq/plot/src/symbol.d.ts:5 |
| Vega-Lite | native | grep: color | grep · weak | 238: "description" |
| AG Charts | native | series.stroke, series.fill | types · strong | ag-charts-types/dist/types/src/series/cartesian/commonOptions.d.ts:148 |
| amCharts 5 | native | grep: stroke | grep · weak | @amcharts/amcharts5/.internal/plugins/json/ChartSerializer.d.ts:42 |
| Google Charts | native | LineChartOptions.colors | types · strong | @types/google.visualization/index.d.ts:786 |
| uPlot | native | Options.series.stroke | types · strong | uplot/dist/uPlot.d.ts:932 |
| TradingView Lightweight Charts | native | grep: LineStyleOptions | grep · weak | 24: * Represents a type of color. |
| MUI X Charts | native | LineChart.series.color | types · strong | @mui/x-charts/models/seriesType/common.d.mts:26 |
| Mermaid (chart-ish diagrams only) | native | grep: plotColorPalettexyChart themeVariables palette only | grep · weak | mermaid/dist/diagrams/xychart/chartBuilder/interfaces.d.ts:20 |
| AntV G2 | native | grep: color | grep · weak | @antv/g2/lib/index.d.ts:43 |