Trackball
Along with tooltip and pan/zoom controllers, RadChartView provides a trackball behavior through the ChartTrackballController class. This controller can display a vertical line across the chart plot area and also to display little visual indicators (circles by default) at points where the trackball line crosses the visualization of a series object. For example when the trackball line crosses a line series line segment, a small circle is drawn highlighting the value of the series at this point. The last capability of the trackball behavior is to display a small popup, similar to the tooltip, in order to provide more detailed information about the closest points to the track ball line's cross section.
In order to utilize this behavior users simply have to add it to the chart's Controllers collection. For example:
Add Controller
The ChartTrackballController will be added automatically if the ShowTrackBall property of RadChartView control is set to true:
Set Property
A sample is shown below:
Sample Setup
Figure 1: Trackball
Customizing the Trackball
RadChartView provides a convenient way to control how the trackball is rendered. You can handle the PenInitialized event and customize the Pen object as follows:
Figure 2: Customizing the Trackball