Skip to main content

HorizontalAlignment

@elastic/chartsExports


@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 the Left, far from the axis
  • Right Axis, Far will push the axis labels to the Right
  • Top/Bottom Axes, Far will default to Center

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 the Right, near the axis
  • Right Axis, Near will push the axis labels to the Left
  • Top/Bottom Axes, Near will default to Center

Right: "right" = Position.Right

Source

packages/charts/src/utils/common.tsx:62


Generated using typedoc-plugin-markdown and TypeDoc