Skip to content

Interface: AxisConfig

Defined in: types.ts:19

Extended by

Properties

addTicks?

ts
optional addTicks?: (number | Tick)[];

Defined in: types.ts:23

Extra ticks layered on top of the auto ticks (only used when ticks is not set).


axisLineColor?

ts
optional axisLineColor?: string;

Defined in: types.ts:35

Axis line color. Default: the per-axis color, else theme.axis.


axisLineWidth?

ts
optional axisLineWidth?: number;

Defined in: types.ts:37

Axis line width in px. Default 1.


format?

ts
optional format?: (value) => string;

Defined in: types.ts:25

Formats a numeric tick value into a label when the tick has no explicit label.

Parameters

ParameterType
valuenumber

Returns

string


gridColor?

ts
optional gridColor?: string;

Defined in: types.ts:61

Major grid line color. Default theme.grid.


gridDash?

ts
optional gridDash?: number[];

Defined in: types.ts:65

Grid line dash pattern (Canvas setLineDash). Default solid.


gridMinorColor?

ts
optional gridMinorColor?: string;

Defined in: types.ts:67

Minor grid line color. Default theme.gridMinor.


gridWidth?

ts
optional gridWidth?: number;

Defined in: types.ts:63

Grid line width in px. Default 1.


labelColor?

ts
optional labelColor?: string;

Defined in: types.ts:47

Tick label color. Default: the per-axis color, else theme.text.


labelFont?

ts
optional labelFont?: string;

Defined in: types.ts:49

Tick label font (CSS font shorthand). Default theme.font.


labelRotation?

ts
optional labelRotation?: number;

Defined in: types.ts:51

Rotate tick labels by this many degrees. Default 0.


labelStandoff?

ts
optional labelStandoff?: number;

Defined in: types.ts:53

Gap in px between a tick and its label. Default 3.


minorTicks?

ts
optional minorTicks?: number | boolean;

Defined in: types.ts:27

Auto minor ticks: true for a default count, or a number of subdivisions per major interval.


showAxisLine?

ts
optional showAxisLine?: boolean;

Defined in: types.ts:33

Draw the axis line. Default true.


showGrid?

ts
optional showGrid?: boolean;

Defined in: types.ts:59

Draw grid lines for this axis. Default true.


showTicks?

ts
optional showTicks?: boolean;

Defined in: types.ts:39

Draw tick marks. Default true.


tickColor?

ts
optional tickColor?: string;

Defined in: types.ts:41

Tick mark color. Default: the per-axis color, else theme.axis.


tickLength?

ts
optional tickLength?: number;

Defined in: types.ts:43

Major tick length in px. Default 5 (minor ticks are 3).


ticks?

ts
optional ticks?: TicksSpec;

Defined in: types.ts:21

Ticks: an array of positions, an array of Tick objects, or a generator fn.


tickWidth?

ts
optional tickWidth?: number;

Defined in: types.ts:45

Tick mark line width in px. Default 1.


title?

ts
optional title?: string;

Defined in: types.ts:29

Axis title, drawn along the axis.


titleColor?

ts
optional titleColor?: string;

Defined in: types.ts:55

Axis title color. Default: the per-axis color, else theme.text.


titleFont?

ts
optional titleFont?: string;

Defined in: types.ts:57

Axis title font (CSS font shorthand). Default theme.font.

MIT licensed. WebGL2 required.