Synchronized charts in ASP.NET Core Chart Component
18 Nov 20181 minute to read
Tooltip synchronization
The tooltip can be synchronized across multiple charts using the ShowTooltip and HideTooltip methods. When we hover over a data point in one chart, we call the ShowTooltip method for the other charts to display related information in other connected charts simultaneously.
In the ShowTooltip method, specify the following parameters programmatically to enable tooltip for a particular chart:
-
X- Data point x-value or x-coordinate value. -
Y- Data point y-value or y-coordinate value.
Crosshair synchronization
The crosshair can be synchronized across multiple charts using the ShowCrosshair and HideCrosshair methods. When we hover over one chart, we call the ShowCrosshair method for the other charts to align with data points in other connected charts, simplifying data comparison and analysis.
In the ShowCrosshair method, specify the following parameters programmatically to enable crosshair for a particular chart:
-
X- Specifies the x-value of the point or x-coordinate. -
Y- Specifies the y-value of the point or y-coordinate.
Zooming synchronization
You can maintain constant zoom levels across multiple charts using the ZoomComplete event. In the ZoomComplete event, obtain the ZoomFactor and ZoomPosition values of the particular chart, and then apply those values to the other charts.
Selection synchronization
You can select the data across multiple charts using the SelectionComplete event. In the SelectionComplete event, obtain the selected values of the particular chart, and then apply those values to the other charts.