Skip to content

Interface: D3PChartObject ​

Defined in: core/object.ts:6

What goes on a chart: anything attachable (axes, renderers, the cursor, the tooltip, tools, annotations...).

Methods ​

addToChart() ​

ts
addToChart(chart): void;

Defined in: core/object.ts:8

Attaches the object to a chart: it creates what it needs there and draws.

Parameters ​

chart ​

D3PChart

Returns ​

void


destroy() ​

ts
destroy(): void;

Defined in: core/object.ts:12

Detaches the object from all its charts and releases what it holds.

Returns ​

void


removeFromChart() ​

ts
removeFromChart(chart): void;

Defined in: core/object.ts:10

Detaches the object from a chart: its marks are removed there.

Parameters ​

chart ​

D3PChart

Returns ​

void