Features · type

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.

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": {
    "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.

LibraryStatusOptionVerificationSource
Chart.jsnativeChartConfiguration.options.elements.line.tension, ChartConfiguration.options.elements.line.cubicInterpolationModetypes · strongchart.js/dist/types/index.d.ts:1944
RechartsnativeLine.type=monotonetypes · strongrecharts/types/shape/Curve.d.ts:25
Apache EChartsnativeseries.smoothtypes · strongecharts/types/dist/shared.d.ts:11104
Highchartsnativeseries.type=splinetypes · stronghighcharts/options/abands.d.ts:1386
Plotly.jsnativetrace.line.shape=splinetypes · strongplot-schema.json#traces.{scatter,scattercarpet,scatterpolar,scattersmith,scatterternary}.attributes.line.shape
NivonativeLine.curve=monotoneXtypes · strong@nivo/line/dist/types/types.d.ts:135
VictorynativeVictoryLine.interpolation=monotoneXtypes · strongvictory-line/lib/victory-line.d.ts:83
visxnativeLinePath.curvetypes · strong@visx/shape/lib/types/D3ShapeConfig.d.ts:43
ApexChartsnativestroke.curve=smoothtypes · strongapexcharts/types/apexcharts.d.ts:2649
Tremor (npm)nativeLineChart.curveType=monotonetypes · strong@tremor/react/dist/index.d.ts:127
Observable Plotnativegrep: catmull-romcurve optiongrep · weak@observablehq/plot/src/curve.d.ts:17
Vega-Litenativegrep: monotonegrep · weak508: "description"
AG Chartsnativegrep: smoothgrep · weakag-charts-types/dist/types/src/series/interpolationOptions.d.ts:2
amCharts 5nativeSmoothedXLineSeriestypes · strong@amcharts/amcharts5/.internal/charts/xy/series/SmoothedXLineSeries.d.ts:21
Google ChartsnativeLineChartOptions.curveTypetypes · strong@types/google.visualization/index.d.ts:788
uPlotnativegrep: splinegrep · weak774: export interface SplinePathBuilderOpts {
TradingView Lightweight Chartsnativegrep: LineTypeLineType.Curvedgrep · weak98:export declare enum LineType {
MUI X ChartsnativeLineChart.series.curve=catmullRomtypes · strong@mui/x-charts/models/seriesType/line.d.mts:111
Mermaid (chart-ish diagrams only)unknowngrep: smoothconflict · unknown—
AntV G2nativegrep: smoothgrep · weak@antv/g2/lib/shape/index.d.ts:8