Features · mark

Per-point / per-category colour

native

Colour individual bars, slices or points

Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.encoding.color.

encoding.color names a category or a paint column. domain and range map values to colours. Drawn on bar, scatter, and pie. Probed by rendering.

Source: packages/core/src/generated/schema.ts:482

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Lane C has more.Lane C has more.AB051015AC
{
  "version": "1",
  "type": "bar",
  "data": [
    {
      "lane": "A",
      "stops": 12,
      "group": "A"
    },
    {
      "lane": "C",
      "stops": 15,
      "group": "B"
    }
  ],
  "encoding": {
    "x": "lane",
    "y": "stops",
    "color": "group"
  },
  "a11y": {
    "alt": "Lane C has more."
  },
  "size": {
    "width": 640,
    "height": 260
  }
}

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.point.md.

LibraryStatusOptionVerificationSource
Chart.jsnativeChartConfiguration.data.datasets.backgroundColorarray or scriptabletypes · strongchart.js/dist/types/index.d.ts:1828
RechartsnativeCell<Cell fill> per datumtypes · strongrecharts/types/component/Cell.d.ts:25
Apache EChartsnativeseries.datadata item itemStyle / colorBy:'data'types · strongecharts/types/dist/shared.d.ts:11188
HighchartsnativeplotOptions.column.colorByPointtypes · stronghighcharts/options/column.d.ts:680
Plotly.jsnativetrace.marker.colorarraytypes · strongplot-schema.json#traces.{bar,barpolar,box,funnel,histogram,histogram2d,…}.attributes.marker.color
NivonativeBar.colorBytypes · strong@nivo/bar/dist/types/types.d.ts:169
VictorypartialVictoryBar.stylefunctional style per datumtypes · strongvictory-bar/lib/victory-bar.d.ts:15
visxnativeBar.filltypes · strong@types/react/index.d.ts:3798
ApexChartsnativeplotOptions.bar.distributedtypes · strongapexcharts/types/apexcharts.d.ts:3102
Tremor (npm)partialBarListsingle colour per category seriestypes · strong@tremor/react/dist/index.d.ts:640
Observable Plotnativegrep: fillfill channel per datumgrep · weak@observablehq/plot/src/symbol.d.ts:5
Vega-Litenativegrep: colorgrep · weak238: "description"
AG Chartsnativegrep: itemStyleritemStyler callbackgrep · weakag-charts-types/dist/types/src/presets/quadrant/quadrantOptions.d.ts:8
amCharts 5nativegrep: adapterstemplate adapters / heatRulesgrep · weak@amcharts/amcharts5/.internal/plugins/json/Serializer.d.ts:58
Google Chartsnativegrep: stylestyle role columngrep · weak@types/google.visualization/index.d.ts:403
uPlotpartialgrep: fillfill can be a function (gradient), not per pointgrep · weak303: export type Fill = CSSStyleDeclaration['background'] | ((self
TradingView Lightweight Chartsnativegrep: colorper-bar color field in datagrep · weak24: * Represents a type of color.
MUI X Chartsnativegrep: colorMapgrep · weak@mui/x-charts/ChartsYAxis/useAxisTicksProps.d.ts:36
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: colorgrep · weak@antv/g2/lib/index.d.ts:43