Synchronised charts
native
Shared cursor/zoom across multiple charts
Matrix status native. Verification runtime · strong. ChartKit option: interaction.sync.
interaction.sync is a group id. Charts with that id share the crosshair, tooltip, and x window, matched on the x value. The server SVG records data-ck-sync. An empty id warns CK3036.
Source: packages/core/src/sync-group.ts
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
},
"interaction": {
"sync": "sales"
}
}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: interaction.sync.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDraw | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | native | LineChart.syncId | types · strong | recharts/types/util/types.d.ts:1259 |
| Apache ECharts | native | grep: connectecharts.connect(group) | grep · weak | echarts/types/dist/shared.d.ts:6987 |
| Highcharts | manual | SVGRendererdocumented synchronized charts demo | mechanism · weak | highcharts/highcharts.d.ts:115777 |
| Plotly.js | manual | layout.shapes | mechanism · weak | plot-schema.json#layout.layoutAttributes.shapes |
| Nivo | none | — | absence · absence | — |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | chart.group | types · strong | apexcharts/types/apexcharts.d.ts:2111 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | native | grep: concatresolve/selection across concat views | grep · weak | 5232: "description" |
| AG Charts | native | grep: syncsync options (enterprise) | grep · weak | ag-charts-types/dist/types/src/presets/financial/priceVolumeOptions.d.ts:70 |
| amCharts 5 | manual | Graphics | mechanism · weak | @amcharts/amcharts5/.internal/core/render/Graphics.d.ts:162 |
| Google Charts | unknown | —Dashboard controls bind charts | unverified · unknown | — |
| uPlot | native | Options.cursor.sync | types · strong | uplot/dist/uPlot.d.ts:592 |
| TradingView Lightweight Charts | manual | grep: ICustomSeriesPaneViewdocumented sync example | mechanism · weak | 1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView |
| MUI X Charts | manual | ChartsContainer | mechanism · weak | @mui/x-charts/ChartsContainer/ChartsContainer.d.mts:34 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | manual | grep: register | mechanism · weak | @antv/g2/lib/exports.d.ts:2 |