Features · render

Canvas output

partial

Renders to 2D canvas

Matrix status partial. Verification types · strong. ChartKit option: ChartKitChartSpecV1.render=canvas.

Line, stacked-area, scatter, bar, heatmap, and candlestick. Axes, legend, title, and annotations stay SVG. Marks are painted from the sampled geometry. auto from 100000 rows. Other types stay SVG and warn CK3033.

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

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
  },
  "render": "canvas"
}

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: render.canvas.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: CanvasRenderingContext2Dgrep · weakchart.js/dist/types/index.d.ts:502
Rechartsunknown—conflict · unknown—
Apache EChartsnativegrep: canvasgrep · weakecharts/types/src/coord/View.d.ts:60
Highchartspartialgrep: boostThresholdSVG by default; boost module draws to WebGL/canvas (modules/boost-canvas)grep · weakhighcharts/highcharts.src.d.ts:5529
Plotly.jsnone—SVG + WebGLabsence · absence—
NivonativeResponsiveLineCanvastypes · strong@nivo/line/dist/types/ResponsiveLineCanvas.d.ts:4
Victoryunknown—conflict · unknown—
visxunknown—conflict · unknown—
ApexChartsunknown—conflict · unknown—
Tremor (npm)unknown—conflict · unknown—
Observable Plotnone—absence · absence—
Vega-Liteplugin—renderer 'canvas'npm · weak—
AG Chartsnativegrep: canvasgrep · weakag-charts-enterprise/dist/types/src/charts/topologyChart.d.ts:2
amCharts 5nativegrep: canvasgrep · weak@amcharts/amcharts5/package.json:5
Google Chartsnone—absence · absence—
uPlotnativegrep: CanvasRenderingContext2Dgrep · weak22: readonly ctx
TradingView Lightweight Chartsnativegrep: canvasgrep · weak3:import { CanvasRenderingTarget2D } from 'fancy-canvas';
MUI X Chartsunknown—SVGconflict · unknown—
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: canvasdefault G canvas renderergrep · weak@antv/g2/lib/data/wordCloud.d.ts:94