Search results

CrosshairSettings API in JavaScript Chart API control

Configures the crosshair in the chart.

Properties

dashArray

string

DashArray for crosshair.

Defaults to

enable

boolean

If set to true, crosshair line becomes visible.

Defaults to false

horizontalLineColor

string

The color of the border that accepts value in hex and rgba as a valid CSS color string.

Defaults to

line

BorderModel

Options to customize the crosshair line.

lineType

LineType

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

opacity

number

The opacity for background.

Defaults to 1

verticalLineColor

string

The color of the border that accepts value in hex and rgba as a valid CSS color string.

Defaults to