Downsampling / decimation
native
Reduce large series before drawing (LTTB, min-max)
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.mark.sampling=lttb, ChartKitChartSpecV1.data.sampling.
auto | minmax | lttb | none. Columnar data.sampling overrides mark.sampling.
Source: chartkit:packages/core/src/generated/schema.ts:1149, chartkit:packages/core/src/generated/schema.ts:177
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": {
"sampling": "lttb"
}
}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.decimation.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartConfiguration.options.plugins.decimationlttb, min-max | types · strong | chart.js/dist/types/index.d.ts:2986 |
| Recharts | none | — | absence · absence | — |
| Apache ECharts | native | series.samplinglttb, average, max, min, sum, minmax | types · strong | echarts/types/dist/shared.d.ts:8421 |
| Highcharts | native | grep: dataGroupingStock dataGrouping; boost module for raw speed | grep · weak | highcharts/highcharts.src.d.ts:394 |
| Plotly.js | none | —scattergl for speed; no decimation option | absence · absence | — |
| Nivo | none | — | absence · absence | — |
| Victory | unknown | — | unverified · unknown | — |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | none | — | absence · absence | — |
| amCharts 5 | native | grep: groupDataDateAxis groupData | grep · weak | @amcharts/amcharts5/.internal/plugins/sliceGrouper/SliceGrouper.d.ts:45 |
| Google Charts | none | — | absence · absence | — |
| uPlot | none | —draws every point; relies on fast canvas paths | absence · absence | — |
| TradingView Lightweight Charts | native | grep: conflationdata conflation | grep · weak | 1124: * Context object provided to custom series conflation reducers. |
| MUI X Charts | none | — | absence · absence | — |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | none | — | absence · absence | — |