CrosshairSettingsModel

23 Sep 20251 minute to read

Interface for a class CrosshairSettings

Properties

dashArray string

Specifies the pattern of dashes and gaps used to stroke the crosshair line.

enable boolean

If set to true, the crosshair line becomes visible.

highlightCategory boolean

If set to true, highlights the entire category range when hovered over.
This property applies only to category axes.

horizontalLineColor string

The color of the horizontal crosshair line accepts values in hex and rgba as valid CSS color strings.

line BorderModel

The line property allows defining the appearance of the crosshair line, including its color and width.

lineType LineType

Specifies the line type for the crosshair.
The available modes are:

  • None: Both vertical and horizontal crosshair lines are hidden.
  • Both: Displays both the vertical and horizontal crosshair lines.
  • Vertical: Shows only the vertical crosshair line.
  • Horizontal: Shows only the horizontal crosshair line.

opacity number

Specifies the opacity level for the crosshair, which controls its transparency.

snapToData boolean

If set to true, the horizontal crosshair snaps to the nearest data point.

verticalLineColor string

The color of the vertical crosshair line accepts values in hex and rgba as valid CSS color strings.