Features · mark

Gradient fills

native

Linear/radial gradient fills on areas/bars

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.gradient.

Source: chartkit:packages/core/src/generated/schema.ts:827

ChartKit spec

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

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": "units"
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  },
  "mark": {
    "gradient": true
  }
}

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

LibraryStatusOptionVerificationSource
Chart.jspartialgrep: CanvasGradientpass a canvas gradient objectgrep · weakchart.js/dist/types/color.d.ts:1
Rechartsunknowngrep: defsSVG <defs> linearGradient manuallyunverified · unknown—
Apache EChartsnativegrep: LinearGradientnew echarts.graphic.LinearGradientgrep · weakecharts/types/src/visual/helper.d.ts:9
Highchartsnativegrep: linearGradientcolor.linearGradientgrep · weakhighcharts/highcharts-autoload.src.d.ts:208
Plotly.jsnativetrace.fillgradienttypes · strongplot-schema.json#traces.{scatter}.attributes.fillgradient
NivonativeLine.defs, Line.filldefs + fill rulestypes · strong@nivo/core/index.d.ts:71
VictorypartialVictoryArea.styleurl(#gradient) via svg defstypes · strongvictory-area/lib/victory-area.d.ts:8
visxnativeLinearGradient, RadialGradienttypes · strong@visx/gradient/lib/gradients/LinearGradient.d.ts:35
ApexChartsnativefill.gradienttypes · strongapexcharts/types/apexcharts.d.ts:4563
Tremor (npm)partialAreaChart.showGradienton/off onlytypes · strong@tremor/react/dist/index.d.ts:95
Observable Plotpartialgrep: fillurl() refs; no gradient helpergrep · weak@observablehq/plot/src/symbol.d.ts:5
Vega-Litenativegrep: gradientgrep · weak251: "$ref"
AG Chartsnativegrep: gradientfill gradient optionsgrep · weakag-charts-types/dist/types/src/main.d.ts:26
amCharts 5nativeLinearGradient, RadialGradienttypes · strong@amcharts/amcharts5/.internal/core/render/gradients/LinearGradient.d.ts:20
Google Chartsunknown—conflict · unknown—
uPlotpartialgrep: fillfill: (u, si) => CanvasGradientgrep · weak303: export type Fill = CSSStyleDeclaration['background'] | ((self
TradingView Lightweight Chartsnativegrep: topColorarea gradient top/bottom coloursgrep · weak419: topColor?
MUI X Chartspartialgrep: gradientgradient on color scale / svg defsgrep · weak@mui/x-charts/hooks/useChartGradientId.d.ts:3
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: linearcolor string 'l(0) 0:#fff 1:#000'grep · weak@antv/g2/lib/index.d.ts:91