Skip to content

Interface: D3PSparkline ​

Defined in: core/sparkline.ts:44

A small chart made by d3pSparkline: its chart and its series, a function to replace the data, and destroy.

Methods ​

destroy() ​

ts
destroy(): void;

Defined in: core/sparkline.ts:52

Removes the sparkline.

Returns ​

void


update() ​

ts
update(data): void;

Defined in: core/sparkline.ts:50

Replace the data; the axes follow.

Parameters ​

data ​

D3PSeriesData

Returns ​

void

Properties ​

chart ​

ts
chart: D3PChart;

Defined in: core/sparkline.ts:46

The chart it is drawn on.


series ​

ts
series: D3PSeries;

Defined in: core/sparkline.ts:48

The series it shows.