Linked charts
Charts given the same sync name show the same place under the pointer: the crosshair and the tooltip follow in each of them.
ts
const options = { sync: 'sales', syncZoom: true };
createChart(visits, visitsSpec, options);
createChart(orders, ordersSpec, options);- Categories are matched by name, so the charts may have them in another order, or only some of them.
- On a time axis, the nearest date is shown, even when the charts have different dates.
- A
scattershares its x value: the nearest point of the others is shown. syncZoom: true: dragging to zoom anxychart withzoomshows the same categories in the others; a double click brings them all back.destroy()leaves the group. Groups live in the page only: nothing is global.
In a dashboard, sync: true links every card.