Search results

ToolbarPosition API in JavaScript Chart API control

Configures the ToolbarPosition for the chart.

Properties

draggable

boolean

When set to true, allows dragging the zoom toolbar in the chart.

Defaults to false.

horizontalAlignment

Alignment

Specifies the horizontal alignment of the toolbar. The available options are:

  • Far – Aligns the toolbar to the right side of the chart.
  • Center – Centers the toolbar horizontally in the chart.
  • Near – Aligns the toolbar to the left side of the chart.

Defaults to ‘Far’

verticalAlignment

Position

Specifies the vertical alignment of the toolbar. The available options are:

  • Top – Positions the toolbar at the top of the chart.
  • Middle – Centers the toolbar vertically in the chart.
  • Bottom – Positions the toolbar at the bottom of the chart.

Defaults to ‘Top’

x

number

Specifies the horizontal offset of the toolbar in the chart. This value determines how far to move the toolbar horizontally from its default position.

Defaults to 0

y

number

Specifies the vertical offset of the toolbar in the chart. This value determines how far to move the toolbar vertically from its default position.

Defaults to 0