Features · data

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.

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: spanGapsgrep · weakchart.js/dist/types/index.d.ts:211
RechartsnativeLine.connectNullstypes · strongrecharts/types/shape/Curve.d.ts:47
Apache EChartsnativeseries.connectNullstypes · strongecharts/types/dist/shared.d.ts:11106
HighchartsnativeplotOptions.series.connectNullstypes · stronghighcharts/options/series.d.ts:733
Plotly.jsnativetrace.connectgapstypes · strongplot-schema.json#traces.{contour,heatmap,scatter,scatter3d,scattercarpet,scattergeo,…}.attributes.connectgaps
Nivonativegrep: enableSlicesnull y values create gaps; no connect optiongrep · weak@nivo/tree/dist/types/types.d.ts:47
Victorypartialgrep: nullnull data creates gapsgrep · weakvictory-scatter/lib/victory-scatter.d.ts:68
visxnativeLinePath.definedtypes · strong@visx/shape/lib/types/D3ShapeConfig.d.ts:41
ApexChartsnativestroketypes · strongapexcharts/types/apexcharts.d.ts:1491
Tremor (npm)nativeLineChart.connectNullstypes · strong@tremor/react/dist/index.d.ts:128
Observable Plotnativegrep: definedundefined values create gapsgrep · weak@observablehq/plot/src/scales.d.ts:232
Vega-Litenativegrep: invalidmark.invalid / config.mark.invalid: 'filter' | 'break-paths-show-domains' ...grep · weak515: "invalid"
AG Chartsnativeseries.connectMissingDatatypes · strongag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:42
amCharts 5nativegrep: connectLineSeries connect / autoGapCountgrep · weak@amcharts/amcharts5/.internal/charts/xy/series/LineSeries.d.ts:21
Google ChartsnativeLineChartOptions.interpolateNullstypes · strong@types/google.visualization/index.d.ts:797
uPlotnativeOptions.series.spanGapstypes · stronguplot/dist/uPlot.d.ts:903
TradingView Lightweight Chartsnativegrep: WhitespaceDatawhitespace points create gapsgrep · weak1157:export interface CustomData<HorzScaleItem = Time> extends CustomSeriesWhitespaceData<HorzScaleItem> {
MUI X ChartsnativeLineChart.series.connectNullstypes · strong@mui/x-charts/models/seriesType/line.d.mts:87
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: connectline connect optiongrep · weak@antv/g2/lib/index.d.ts:79