Api crosshairSettings in TypeScript Chart control

18 Nov 20181 minute to read

Configures the crosshair in the chart.

Properties

enable boolean

If set to true, crosshair line becomes visible.

Defaults to false

line BorderModel

Options to customize the crosshair line.

lineType string

Specifies the line type. Horizontal mode enables the horizontal line and Vertical mode enables the vertical line. They are,

  • None: Hides both vertical and horizontal crosshair lines.
  • Both: Shows both vertical and horizontal crosshair lines.
  • Vertical: Shows the vertical line.
  • Horizontal: Shows the horizontal line.

Defaults to Both