HorizontalAlignment
@elastic/charts • Exports
@elastic/charts / HorizontalAlignment
Variable: HorizontalAlignment
const
HorizontalAlignment:Readonly
<Object
>
Type declaration
Center
Center:
"center"
Far
Far:
"far"
Aligns to far side of axis depending on position
Examples:
- Left Axis,
Far
will push the label to theLeft
, far from the axis - Right Axis,
Far
will push the axis labels to theRight
- Top/Bottom Axes,
Far
will default toCenter
Left
Left:
"left"
=Position.Left
Near
Near:
"near"
Aligns to near side of axis depending on position
Examples:
- Left Axis,
Near
will push the label to theRight
, near the axis - Right Axis,
Near
will push the axis labels to theLeft
- Top/Bottom Axes,
Near
will default toCenter
Right
Right:
"right"
=Position.Right
Source
packages/charts/src/utils/common.tsx:62
Generated using typedoc-plugin-markdown and TypeDoc