New to Kendo UI for Angular? Start a free 30-day trial

Crosshairs

The Chart crosshairs are lines, which are perpendicular to the axes and enable the user to see the exact value at the current cursor position in their tooltip.

Enable Crosshairs

To enable the crosshair for an axis, either:

  • Add the corresponding crosshair component, or
  • Set the crosshair.visible option to true.

The following example demonstrates how to enable the crosshairs. The category axis uses the component to enable the crosshair and its tooltip, the value axis uses an object to define the settings for them.

Example
View Source
Change Theme:

Get Current Cursor Values

To get the current hovered values, use the plotAreaHover event.

The following example demonstrates how to get the hovered values.

Example
View Source
Change Theme:

Support and Learning Resources

Additional Resources