$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Chart Control for C# Windows Forms
Chart features of scroll and zoom, selection, tooltip, trackball, title, legend, smart labels, drill down
Home > WinForms UI Controls > User Manual > Chart Tooltip in C#

Chart Tooltip for WinForms C# Tutorial

The WinForms Chart Control provides a tooltip feature for developers to design more interactive Chart for their C# Windows Forms applications. To add the tooltip function to Chart in C# Windows Forms, we need to use the class named ChartTooltipController. And this class can also be used to visualize arbitrary information about a data point. The tooltip is able to display the information of a specific data point when users hover over the data point. If not, it will display the information about the closest data point around the hold position in chart.
To apply the tooltip to chart, developers need to add it to the controller collection in Chart. The below C# Code shows how to achieve this.

chart1.Controllers.Add(new ChartTooltipController());
It is possible to add the ChartTooltipController to the controller collection in Chart automatically when the value of DisplayToolTip property is true in the Chart control, illustrating like as follow,

chart1.DisplayToolTip = true;
The below C# Code illustrates how to customize the Tooltip behavior for Chart in Windows Forms applications.

chart1.AreaType = ChartAreaType.Cartesian;
BarSeries barSeries1 = new BarSeries();
barSeries1.DataPoints.Add(new CategoricalDataPoint(13, "4"));
barSeries1.DataPoints.Add(new CategoricalDataPoint(22, "9"));
barSeries1.DataPoints.Add(new CategoricalDataPoint(14, "3"));
barSeries1.DataPoints.Add(new CategoricalDataPoint(19, "5"));
barSeries1.DataPoints.Add(new CategoricalDataPoint(6, "1"));
barSeries1.DataPoints.Add(new CategoricalDataPoint(5, "7"));
chart1.Series.Add(barSeries1);

BarSeries barSeries2 = new BarSeries();
barSeries2.DataPoints.Add(new CategoricalDataPoint(6, "3"));
barSeries2.DataPoints.Add(new CategoricalDataPoint(3, "2"));
barSeries2.DataPoints.Add(new CategoricalDataPoint(9, "4"));
barSeries2.DataPoints.Add(new CategoricalDataPoint(11, "9"));
barSeries2.DataPoints.Add(new CategoricalDataPoint(18, "1"));
barSeries2.DataPoints.Add(new CategoricalDataPoint(33, "2"));
chart1.Series.Add(barSeries2);

chart1.DisplayToolTip = true;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls