.NET MAUI Chart TrackBall Behavior
The TrackBall behavior handles of the rendering concise information about data points in a small popup which displays over its relevant data points. A vertical line is also drawn through the data points for maximum clarity.
Features
-
ShowTrackInfo
(bool
)—Determines whether the visual information for all the closest data points will be displayed. -
ShowIntersectionPoints
(bool
)—Defines a value indicating whether a visual information for all the closest data points will be displayed.
Example
The following example shows how the TrackBall behavior of the Chart works:
1. Create the needed business objects, for example:
2. Create a ViewModel
:
3. Declare a RadCartesianChart
in XAML:
The following image shows how the TrackBall looks: