Line chart
native
Series of points joined by straight segments
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=line.
Source: 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": "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
}
}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.line.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartTypeRegistry.line | types · strong | chart.js/dist/types/index.d.ts:3715 |
| Recharts | native | LineChart, Line | types · strong | recharts/types/chart/LineChart.d.ts:8 |
| Apache ECharts | native | series.type=line | types · strong | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | native | series.type=line | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.type=scatter, trace.modetype:'scatter' with mode:'lines' | types · strong | plot-schema.json#traces.scatter |
| Nivo | native | Line | types · strong | @nivo/line/dist/types/Line.d.ts:4 |
| Victory | native | VictoryLine | types · strong | victory-line/lib/victory-line.d.ts:21 |
| visx | native | LinePath, LineSeries | types · strong | @visx/shape/lib/shapes/LinePath.d.ts:18 |
| ApexCharts | native | chart.type=line | types · strong | apexcharts/types/apexcharts.d.ts:1767 |
| Tremor (npm) | native | LineChart | types · strong | @tremor/react/dist/index.d.ts:130 |
| Observable Plot | native | line | types · strong | @observablehq/plot/src/marks/line.d.ts:113 |
| Vega-Lite | native | mark=line | types · strong | vega-lite/build/spec/unit.d.ts:19 |
| AG Charts | native | series.type=line | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86 |
| amCharts 5 | native | LineSeries | types · strong | @amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:70 |
| Google Charts | native | LineChart | types · strong | @types/google.visualization/index.d.ts:750 |
| uPlot | native | Options.seriesdefault series path is a line | types · strong | uplot/dist/uPlot.d.ts:375 |
| TradingView Lightweight Charts | native | LineSeries | types · strong | lightweight-charts/dist/typings.d.ts:10 |
| MUI X Charts | native | LineChart | types · strong | @mui/x-charts/LineChart/LineChart.d.mts:88 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.xyChartxychart-beta 'line' series | types · strong | mermaid/dist/config.type.d.ts:225 |
| AntV G2 | native | MarkTypes=line | types · strong | @antv/g2/lib/spec/mark.d.ts:13 |