charton API / @chart-on/core / index / createLinkGroup
Function: createLinkGroup()
createLinkGroup(
charts?,options?):LinkGroup
Defined in: packages/core/src/link-group.ts:92
Keep the crosshair, visible range, symbol, interval, timezone and (opt-in) drawings of several charts in step.
A chart that follows another is never echoed back: each link compares the new state with what the chart already shows, and only a real change on one chart is passed to the others. A followed range moves the chart like a pan, without animation and without touching its autoscale.
Parameters
charts?
readonly Chart[] = []
options?
Partial<LinkGroupOptions> = {}
Returns
Example
ts
const group = createLinkGroup([daily, hourly], { symbol: true });
group.add(weekly);
group.applyOptions({ drawings: true });
group.destroy(); // unlink, the charts stay