Smoothed / spline line
native
Curved interpolation (monotone, cardinal, natural, catmull-rom)
Matrix status native. Verification types · strong. ChartKit option: mark.curve=monotone.
monotone is monotone-x and stays inside the data. smooth, spline, and basis repair to monotone.
Source: chartkit:packages/core/src/generated/schema.ts:915
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
},
"mark": {
"curve": "monotone"
}
}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.smooth.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.options.elements.line.tension, ChartConfiguration.options.elements.line.cubicInterpolationMode | types · strong | chart.js/dist/types/index.d.ts:1944 |
| Recharts | native | Line.type=monotone | types · strong | recharts/types/shape/Curve.d.ts:25 |
| Apache ECharts | native | series.smooth | types · strong | echarts/types/dist/shared.d.ts:11104 |
| Highcharts | native | series.type=spline | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.line.shape=spline | types · strong | plot-schema.json#traces.{scatter,scattercarpet,scatterpolar,scattersmith,scatterternary}.attributes.line.shape |
| Nivo | native | Line.curve=monotoneX | types · strong | @nivo/line/dist/types/types.d.ts:135 |
| Victory | native | VictoryLine.interpolation=monotoneX | types · strong | victory-line/lib/victory-line.d.ts:83 |
| visx | native | LinePath.curve | types · strong | @visx/shape/lib/types/D3ShapeConfig.d.ts:43 |
| ApexCharts | native | stroke.curve=smooth | types · strong | apexcharts/types/apexcharts.d.ts:2649 |
| Tremor (npm) | native | LineChart.curveType=monotone | types · strong | @tremor/react/dist/index.d.ts:127 |
| Observable Plot | native | grep: catmull-romcurve option | grep · weak | @observablehq/plot/src/curve.d.ts:17 |
| Vega-Lite | native | grep: monotone | grep · weak | 508: "description" |
| AG Charts | native | grep: smooth | grep · weak | ag-charts-types/dist/types/src/series/interpolationOptions.d.ts:2 |
| amCharts 5 | native | SmoothedXLineSeries | types · strong | @amcharts/amcharts5/.internal/charts/xy/series/SmoothedXLineSeries.d.ts:21 |
| Google Charts | native | LineChartOptions.curveType | types · strong | @types/google.visualization/index.d.ts:788 |
| uPlot | native | grep: spline | grep · weak | 774: export interface SplinePathBuilderOpts { |
| TradingView Lightweight Charts | native | grep: LineTypeLineType.Curved | grep · weak | 98:export declare enum LineType { |
| MUI X Charts | native | LineChart.series.curve=catmullRom | types · strong | @mui/x-charts/models/seriesType/line.d.mts:111 |
| Mermaid (chart-ish diagrams only) | unknown | grep: smooth | conflict · unknown | — |
| AntV G2 | native | grep: smooth | grep · weak | @antv/g2/lib/shape/index.d.ts:8 |