Articles in this section
Category / Section

How to display Chart Tooltips?

1 min read

 

Tooltips can be displayed by setting ShowTooltips to true. By default, Tooltips displays the Y value of the series. To display the user defined text as tooltips, we need to set PointsToolTipFormat = "{1}".

Tooltips can be set to ChartArea also. This can be done using ChartAreaToolTip property.

C#

this.chartControl1.ShowToolTips = true;

// Chart Area Tooltips

this.chartControl1.ChartArea.ChartAreaToolTip = "Chart Area";

// Series points Tooltips

series1.PointsToolTipFormat = "{1}";

series1.Style.ToolTip = "Series1";

VB

Me.ChartControl1.ShowToolTips = True

' Chart Area Tooltips

Me.ChartControl1.ChartArea.ChartAreaToolTip = "Chart Area"

' Series points Tooltips

series1.PointsToolTipFormat = "{1}"

series1.Style.ToolTip = "Series1"

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied