Example of Crosshair in ASP.NET MVC 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.
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 Enableopens in a new tab property in the ChartCrosshairSettingsopens in a new tab class and customize its tooltip by using the ChartAxisCrosshairTooltipopens in a new tab 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.
More information about the crosshair can be found in this documentation sectionopens in a new tab.