Documentation menu

Class

SyncGroup

A group of charts whose crosshair, visible range and (optionally) drawings follow each other. Charts join with FerroChart.joinSync.

Constructor

constructor

constructor(origin?: number | null);

Creates an empty group. Pages that forward drawing operations between groups (charts in workers) give each group its own origin (0..2^21, so that keys stay exact JS numbers).

Like every object of the API, a SyncGroup holds WebAssembly memory. Objects returned by the chart are freed with it; free() (or using) releases one earlier.