• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Crosshair in ASP.NET Core Chart Control

This sample depicts the crosshair behavior in the charts. To view the crosshair and its tooltip, hover over the chart or tap on it in touch-enabled devices.

DEMO
SOURCE

The crosshair is used to inspect or focus on an individual data point using a vertical and a horizontal line. You can enable the crosshair using the Enable property in the ChartCrosshairSettings class and customize its tooltip by using the ChartAxisCrosshairTooltip in the axis.

The snapToData property snaps the crosshair to the nearest data point instead of following the exact mouse position, providing a more precise focus on data points.

Tooltip is enabled in this example. To see the tooltip in action, hover over or tap on the chart.

More information about the crosshair can be found in this documentation sectionopens in a new tab.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab