Articles in this section
Category / Section

How do I format the tooltips for the chart series?

1 min read

 

Tooltips can be displayed by setting ShowTooltips to true. Using PointsToolTipFormat property we can set the tooltip format that is to be applied to values that are displayed as ToolTips. It exposed the following tooltip formats,

  • "{0}" - series name
  • "{1}" - series style
  • "{2}" - tooltip of point
  • "{3}" - X value of point
  • "{4}"- Y value of point

We can also define the tooltip text using the PointsToolTipFormat property.

C#

//Enabling Tooltips

this.chartControl1.ShowToolTips = true;

// Setting SeriesName as Tooltip for the series

series.PointsToolTipFormat = "{0}";

// Setting Tooltip as Series2 for the series1

series1.PointsToolTipFormat = "Series 2";

VB

'Enabling Tooltips

Me.chartControl1.ShowToolTips = True

' Setting SeriesName as Tooltip for the series

series.PointsToolTipFormat = "{0}"

' Setting Tooltip as Series2 for the series1

series1.PointsToolTipFormat = "Series 2"

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