Options to configure the crosshair on the chart, which displays lines that follow the mouse cursor and show the axis values of the data points.
string
Specifies the pattern of dashes and gaps used to stroke the crosshair line.
Defaults to ”
boolean
If set to true, the crosshair line becomes visible.
Defaults to false
string
The color of the horizontal crosshair line accepts values in hex and rgba as valid CSS color strings.
Defaults to ”
The line
property allows defining the appearance of the crosshair line, including its color and width.
Specifies the line type for the crosshair. The available modes are:
Defaults to Both
number
Specifies the opacity level for the crosshair, which controls its transparency.
Defaults to 1
boolean
If set to true
, the horizontal crosshair snaps to the nearest data point.
Defaults to false
string
The color of the vertical crosshair line accepts values in hex and rgba as valid CSS color strings.
Defaults to ”