Features · interaction

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.

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
  },
  "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.

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawmechanism · weakchart.js/dist/types/index.d.ts:1051
RechartsnativeLineChart.syncIdtypes · strongrecharts/types/util/types.d.ts:1259
Apache EChartsnativegrep: connectecharts.connect(group)grep · weakecharts/types/dist/shared.d.ts:6987
HighchartsmanualSVGRendererdocumented synchronized charts demomechanism · weakhighcharts/highcharts.d.ts:115777
Plotly.jsmanuallayout.shapesmechanism · weakplot-schema.json#layout.layoutAttributes.shapes
Nivonone—absence · absence—
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativechart.grouptypes · strongapexcharts/types/apexcharts.d.ts:2111
Tremor (npm)none—absence · absence—
Observable Plotnone—absence · absence—
Vega-Litenativegrep: concatresolve/selection across concat viewsgrep · weak5232: "description"
AG Chartsnativegrep: syncsync options (enterprise)grep · weakag-charts-types/dist/types/src/presets/financial/priceVolumeOptions.d.ts:70
amCharts 5manualGraphicsmechanism · weak@amcharts/amcharts5/.internal/core/render/Graphics.d.ts:162
Google Chartsunknown—Dashboard controls bind chartsunverified · unknown—
uPlotnativeOptions.cursor.synctypes · stronguplot/dist/uPlot.d.ts:592
TradingView Lightweight Chartsmanualgrep: ICustomSeriesPaneViewdocumented sync examplemechanism · weak1629: addCustomSeries<TData extends CustomData<HorzScaleItem>, TOptions extends CustomSeriesOptions, TPartialOptions extends SeriesPartialOptions<TOptions> = SeriesPartialOptions<TOptions>>(customPaneView
MUI X ChartsmanualChartsContainermechanism · weak@mui/x-charts/ChartsContainer/ChartsContainer.d.mts:34
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2manualgrep: registermechanism · weak@antv/g2/lib/exports.d.ts:2