ToolbarPosition

Defines the positioning options for the zoom toolbar within the chart.

Props

The following table outlines the props for the ToolbarPosition:

NameTypeDefaultDescription
hAlign
'Right'

Specifies the horizontal alignment of the toolbar. Available options:

  • Right: Aligns the toolbar to the right side of the chart.
  • Center: Centers the toolbar horizontally within the chart.
  • Left: Aligns the toolbar to the left side of the chart.
vAlign
'Top'

Specifies the vertical alignment of the toolbar. Available options:

  • Top: Positions the toolbar at the top of the chart.
  • Center: Centers the toolbar vertically within the chart.
  • Bottom: Positions the toolbar at the bottom of the chart.
x
number
0

Sets the horizontal offset of the toolbar from its default position, in pixels.

y
number
0

Sets the vertical offset of the toolbar from its default position, in pixels.