An object that specifies the appearance options of the chart crosshair.
Crosshair is a pointer, which is represented by two mutually-crossing lines stretched over the entire chart plot. The crosshair helps you identify the values that lie between the series points more precisely. When enabled, the crosshair center follows the mouse cursor. To enable the crosshair, set the enabled option within the crosshair configuration object to true.
Use the crosshair configuration object to specify options for both of the crosshair lines. To set the options for the horizontal or vertical crosshair line individually, specify these options within the crosshair | horizontalLine or crosshair | verticalLine object correspondingly.
Specifies a color for the crosshair lines.
This option supports the following colors.
- Hexadecimal colors
- RGB colors
- RGBA colors (not supported in Internet Explorer 8)
- Predefined/cross-browser color names
- Predefined SVG colors (not supported in Internet Explorer 8)
Specifies a dash style for the crosshair lines.
The following values are available.
Displays solid, continuous lines.
Displays lines using long dashes.
Displays lines using dashes.
Displays lines using dots.
- Any combination of 'longDash', 'dash' and 'dot'
Displays lines by repeating the specified combination. For instance, 'dashdotdash'.
Specifies whether to enable the crosshair or not.
Specifies the appearance of the horizontal crosshair line.
Within this object you can specify the appearance of the horizontal crosshair line. If you need to change only the visibility of the line rather than the other options, you can assign true or false directly to the horizontalLine field.
Specifies the opacity of the crosshair lines.
Specifies the appearance of the vertical crosshair line.
Within this object you can specify the appearance of the vertical crosshair line. If you need to change only the visibility of the line rather than the other options, you can assign true or false directly to the verticalLine field.
Specifies the width of the crosshair lines.