Skip to main content

VerticalAlignment

@elastic/charts • Exports


@elastic/charts / VerticalAlignment

Variable: VerticalAlignment

const VerticalAlignment: Readonly<Object>

Type declaration​

Bottom​

Bottom: "bottom" = Position.Bottom

Far​

Far: "far"

Aligns to far side of axis depending on position

Examples:

  • Top Axis, Far will push the label to the Top, far from the axis
  • Bottom Axis, Far will push the axis labels to the Bottom
  • Left/Right Axes, Far will default to Middle

Middle​

Middle: "middle"

Near​

Near: "near"

Aligns to near side of axis depending on position

Examples:

  • Top Axis, Near will push the label to the Right, near the axis
  • Bottom Axis, Near will push the axis labels to the Left
  • Left/Right Axes, Near will default to Middle

Top​

Top: "top" = Position.Top

Source​

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


Generated using typedoc-plugin-markdown and TypeDoc