Skip to content

Interface: D3PChartOptions ​

Defined in: core/chart.ts:29

Options of a chart: its container, its size (the container's by default), its margin, its name, the delay of the resize, and the bus.

Extends ​

Properties ​

bus? ​

ts
bus?: D3PBus;

Defined in: core/object.ts:18

The bus the object uses (the global bus by default).

Inherited from ​

D3PObjectOptions.bus


container ​

ts
container: string | Element;

Defined in: core/chart.ts:31

Element or CSS selector receiving the SVG.


height? ​

ts
height?: number;

Defined in: core/chart.ts:35

Fixed height; omitted = follow the container.


margin? ​

ts
margin?: Partial<D3PMargin>;

Defined in: core/chart.ts:39

The room around the plot, in pixels, for the tick labels of the axes: the sides you leave out keep their default. Titles and legends take their room on top of it.


name? ​

ts
name?: string;

Defined in: core/chart.ts:41

The name of the chart, to tell several apart in messages and event names (chart- and its number by default).


resizeDebounceMs? ​

ts
resizeDebounceMs?: number;

Defined in: core/chart.ts:43

Debounce of container-driven resizes (default 0 = immediate).


width? ​

ts
width?: number;

Defined in: core/chart.ts:33

Fixed width; omitted = follow the container.