Chart Trackball for WinForms C# Tutorial
The Windows Forms Chart Control provides a trackball function to Chart for developers to design more interactive Chart for their C# Windows Forms applications. To add the Trackball function to Chart in C# Windows Forms projects, developers need to use the ChartTrackballController class. This class is able to display a vertical line across the chart area as well as display little visual indicators at points where the trackball line crosses the visualization of a series object. The default setting is to display circles which will be drawn when the trackball line crosses a line series line segment. Developers could also use the trackball feature to display a popup to offer details in relation to the closest points.
To add the Trackball function to Chart in C# Windows Forms projects, we need to add it to the chart controller collection. The below is C# code showing how to add the Trackball feature.
It is possible to add the ChartTrackballController to the controller collection in Chart automatically when the value of the ShowTrackBall property is true, in the Chart control, illustrating like as follow
| ![]() UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlChart PropertyChart GridChart Series TypesChart Series - AreaChart Series - BarChart Series - LineChart Series - ScatterChart Series - ScatterLineChart Series - PieChart Series - DonutChart Series - PolarChart Series - RadarChart AxesChart Axes - CategoricalChart Axes - DateTimeChart Axes - LinearChart Axes - LogarithmicChart Axes - PolarChart Axes - PlotModeChart Axes - RadicalChart Axes - Multiple AxesChart FeatureChart - Scroll and ZoomChart - SelectionChart - TooltipChart - TrackballChart - TitleChart - LegendChart - Smart LabelsChart - Drill DownChart Data BindingChart Custom PaletteChart Custom RenderingWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |