English
Interface: D3PSparklineOptions
Defined in: core/sparkline.ts:14
Options of a sparkline: the container, the data, the type of chart, its color, size, value range, curve, stroke width and padding.
Properties
bus?
ts
bus?: D3PBus;Defined in: core/sparkline.ts:38
The bus the sparkline uses (the global bus by default).
color?
ts
color?: string;Defined in: core/sparkline.ts:22
Color of the drawing.
container
ts
container: string | Element;Defined in: core/sparkline.ts:16
The element it is drawn in.
curve?
ts
curve?: D3PCurve;Defined in: core/sparkline.ts:32
How the points of a line or an area are joined.
data
ts
data: D3PSeriesData;Defined in: core/sparkline.ts:18
The values: anything D3PSeriesData accepts.
height?
ts
height?: number;Defined in: core/sparkline.ts:26
Height in pixels; the container's by default.
max?
ts
max?: number;Defined in: core/sparkline.ts:30
Upper end of the value axis; fitted to the data by default.
min?
ts
min?: number;Defined in: core/sparkline.ts:28
Fix the ends of the value axis (default: fitted to the data).
padding?
ts
padding?: number;Defined in: core/sparkline.ts:36
Space around the drawing, in pixels (default 2).
strokeWidth?
ts
strokeWidth?: number;Defined in: core/sparkline.ts:34
Width of the line, in pixels.
type?
ts
type?: "line" | "area" | "bar";Defined in: core/sparkline.ts:20
What is drawn: a line (the default), an area or bars.
width?
ts
width?: number;Defined in: core/sparkline.ts:24
Fixed size; default: the container's.