Sparkline
native
Tiny chart without axes for inline use
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=sparkline, ChartKitChartSpecV1.type=mini-area.
Source: chartkit:packages/core/src/generated/schema.ts:24, chartkit:packages/core/src/generated/schema.ts:24
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "sparkline",
"data": [
4,
6,
5,
9,
8
],
"a11y": {
"alt": "It ends higher."
},
"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: type.sparkline.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDrawline chart with axes/legend disabled | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | manual | Customized | mechanism · weak | recharts/types/component/Customized.d.ts:26 |
| Apache ECharts | manual | series.type=custom | mechanism · weak | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | manual | SVGRendererdocumented sparkline demo with axes disabled | mechanism · weak | highcharts/highcharts.d.ts:115777 |
| Plotly.js | manual | layout.shapes | mechanism · weak | plot-schema.json#layout.layoutAttributes.shapes |
| Nivo | manual | Line.layers | mechanism · weak | @nivo/line/dist/types/types.d.ts:171 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | chart.sparkline | types · strong | apexcharts/types/apexcharts.d.ts:2159 |
| Tremor (npm) | native | SparkLineChart, SparkAreaChart | types · strong | @tremor/react/dist/index.d.ts:569 |
| Observable Plot | manual | grep: render | mechanism · weak | @observablehq/plot/src/scales.d.ts:166 |
| Vega-Lite | manual | TopLevelSpec.layer | mechanism · weak | vega-lite/build/spec/layer.d.ts:27 |
| AG Charts | native | AgSparklineOptionsAG sparkline API (used by AG Grid) | types · strong | ag-charts-types/dist/types/src/chartBuilderOptions.d.ts:65 |
| amCharts 5 | manual | Graphics | mechanism · weak | @amcharts/amcharts5/.internal/core/render/Graphics.d.ts:162 |
| Google Charts | none | — | absence · absence | — |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | manual | grep: ICustomSeriesPaneView | mechanism · weak | 1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView |
| MUI X Charts | native | SparkLineChart | types · strong | @mui/x-charts/SparkLineChart/SparkLineChart.d.mts:128 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | manual | grep: register | mechanism · weak | @antv/g2/lib/exports.d.ts:2 |