Angular Chart - crosshair.horizontalLine
Configures the horizontal crosshair line individually.
Crosshair lines can be configured using the following objects.
crosshair.horizontalLine
Configures the horizontal crosshair line only.crosshair.verticalLine
Configures the vertical crosshair line only.crosshair
Configures both the crosshair lines.
Options declared in the horizontalLine and verticalLine objects override the options declared in the crosshair object.
color
Specifies the color of the horizontal crosshair line.
This option supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
dashStyle
Specifies the dash style of the horizontal crosshair line.
This option accepts one of the following values.
- solid
Displays a solid, continuous crosshair line. - dash
Displays the horizontal crosshair line using short dashes. - longDash
Displays the horizontal crosshair line using long dashes. - dot
Displays the horizontal crosshair line using dots. - Any combination of 'longDash', 'dash' and 'dot'
Displays the horizontal crosshair line by repeating the specified combination. For example, 'dashdotdash'.
When using the widget as an ASP.NET MVC Control, specify this option using the DashStyle
enum. This enum accepts the following values: Solid
, LongDash
, Dash
and Dot
.
label
Configures the label that belongs to the horizontal crosshair line.
Crosshair labels can be configured using the following objects.
crosshair.horizontalLine.label
Configures the label of the horizontal crosshair line only.crosshair.verticalLine.label
Configures the label of the vertical crosshair line only.crosshair.label
Configures both the labels.
These objects have identical structure, but the label settings declared in the horizontalLine or verticalLine object override the label settings declared directly in the crosshair object.
See Also
- crosshair.verticalLine.label - configures the label that belongs to the vertical crosshair line.
opacity
Specifies how transparent the horizontal crosshair line should be.
This option accepts a value from 0 to 1, where 0 makes the horizontal crosshair line completely transparent, and 1 makes it opaque.
visible
Specifies whether to show the horizontal crosshair line or not.
See Also
- crosshair.enabled - enables the crosshair feature.
If you have technical questions, please create a support ticket in the DevExpress Support Center.