Skip to content

grafit-charts


Interface: ThemeAxisOptions

Axis chrome tokens — the one block overrides cannot reach, since axes is an array.

Properties

color?

optional color?: string

Colour of the axis line alone; defaults to params.axisColor.


gridColor?

optional gridColor?: string

Colour of the grid alone; defaults to params.axisColor.


gridDash?

optional gridDash?: number[]

Grid dash pattern; an empty array draws a solid line.


gridLine?

optional gridLine?: boolean

Grid lines.


labelColor?

optional labelColor?: string

Tick label colour; defaults to params.mutedColor.


labelSize?

optional labelSize?: number

Tick label size; defaults to params.fontSize.


labelSpacing?

optional labelSpacing?: number

Gap between the axis line and its labels (8).


line?

optional line?: boolean

The axis line.


lineDash?

optional lineDash?: number[]

Dash pattern of the axis line itself; solid by default.


strokeWidth?

optional strokeWidth?: number

Thickness of the axis line, the ticks and the grid.


tick?

optional tick?: boolean

Tick marks; off unless a theme or an axis turns them on.


tickColor?

optional tickColor?: string

Colour of the ticks alone; defaults to params.axisColor.


tickSize?

optional tickSize?: number

Length of a tick mark (6).


titleColor?

optional titleColor?: string

Axis title colour; defaults to params.foregroundColor.


titleSize?

optional titleSize?: number

Axis title size; defaults to one step above params.fontSize.