Missing values / gaps
native
Nulls render as gaps, with an option to connect them
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.connectNulls.
Source: chartkit:packages/core/src/generated/schema.ts:839
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": {
"connectNulls": true
}
}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: data.missing.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: spanGaps | grep · weak | chart.js/dist/types/index.d.ts:211 |
| Recharts | native | Line.connectNulls | types · strong | recharts/types/shape/Curve.d.ts:47 |
| Apache ECharts | native | series.connectNulls | types · strong | echarts/types/dist/shared.d.ts:11106 |
| Highcharts | native | plotOptions.series.connectNulls | types · strong | highcharts/options/series.d.ts:733 |
| Plotly.js | native | trace.connectgaps | types · strong | plot-schema.json#traces.{contour,heatmap,scatter,scatter3d,scattercarpet,scattergeo,…}.attributes.connectgaps |
| Nivo | native | grep: enableSlicesnull y values create gaps; no connect option | grep · weak | @nivo/tree/dist/types/types.d.ts:47 |
| Victory | partial | grep: nullnull data creates gaps | grep · weak | victory-scatter/lib/victory-scatter.d.ts:68 |
| visx | native | LinePath.defined | types · strong | @visx/shape/lib/types/D3ShapeConfig.d.ts:41 |
| ApexCharts | native | stroke | types · strong | apexcharts/types/apexcharts.d.ts:1491 |
| Tremor (npm) | native | LineChart.connectNulls | types · strong | @tremor/react/dist/index.d.ts:128 |
| Observable Plot | native | grep: definedundefined values create gaps | grep · weak | @observablehq/plot/src/scales.d.ts:232 |
| Vega-Lite | native | grep: invalidmark.invalid / config.mark.invalid: 'filter' | 'break-paths-show-domains' ... | grep · weak | 515: "invalid" |
| AG Charts | native | series.connectMissingData | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:42 |
| amCharts 5 | native | grep: connectLineSeries connect / autoGapCount | grep · weak | @amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:21 |
| Google Charts | native | LineChartOptions.interpolateNulls | types · strong | @types/google.visualization/index.d.ts:797 |
| uPlot | native | Options.series.spanGaps | types · strong | uplot/dist/uPlot.d.ts:903 |
| TradingView Lightweight Charts | native | grep: WhitespaceDatawhitespace points create gaps | grep · weak | 1157:export interface CustomData<HorzScaleItem = Time> extends CustomSeriesWhitespaceData<HorzScaleItem> { |
| MUI X Charts | native | LineChart.series.connectNulls | types · strong | @mui/x-charts/models/seriesType/line.d.mts:87 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: connectline connect option | grep · weak | @antv/g2/lib/index.d.ts:79 |