Skip to main content

AxisStyle

@elastic/chartsExports


@elastic/charts / AxisStyle

Interface: AxisStyle

Contents

Properties

axisLine

axisLine: StrokeStyle<string> & Visible

Source

packages/charts/src/utils/themes/theme.ts:169


axisPanelTitle

axisPanelTitle: TextStyle & Visible

Source

packages/charts/src/utils/themes/theme.ts:168


axisTitle

axisTitle: TextStyle & Visible

Source

packages/charts/src/utils/themes/theme.ts:167


gridLine

gridLine: Object

Type declaration

horizontal

horizontal: GridLineStyle

vertical

vertical: GridLineStyle

Source

packages/charts/src/utils/themes/theme.ts:200


maxExtent

maxExtent: string | number

Max extent (cross-axis) of the axis in pixels or relative to the container size in the cross-axis direction, e.g. '20%'.

Source

packages/charts/src/utils/themes/theme.ts:199


minExtent

minExtent: string | number

Min extent (cross-axis) of the axis in pixels or relative to the container size in the cross-axis direction, e.g. '20%'.

Source

packages/charts/src/utils/themes/theme.ts:197


tickLabel

tickLabel: TextStyle & Visible & Object

Type declaration

alignment

alignment: TextAlignment

lineHeight

lineHeight: number

Line height multiplier applied to fontSize for wrapped tick labels.

maxLength?

maxLength?: number

Max length of the tick label in pixels. When unset the label length is bounded by the available space.

minLength

minLength: number

Min length of the tick label in pixels.

offset

offset: TextOffset

Offset in pixels to render text relative to anchor

Note: rotation aligns to global cartesian coordinates

rotation

rotation: number

The degrees of rotation of the tick labels

truncate

truncate: false | Truncate

Where the tick label is truncated when it exceeds the available space. Set to false to disable truncation and let the label overflow.

wrapLines

wrapLines: number

Max number of lines for wrapped tick labels. Set to 1 to disable wrapping.

Source

packages/charts/src/utils/themes/theme.ts:170


tickLine

tickLine: TickStyle

Source

packages/charts/src/utils/themes/theme.ts:195


Generated using typedoc-plugin-markdown and TypeDoc