We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How do I format the tooltips for the chart series?

 

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"

Article ID: Published Date: Last Revised Date: Platform: Control:
77 04/30/2011 07/10/2014 Windows Forms Chart
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.