arun Posted August 6, 2009 Report Share Posted August 6, 2009 Hi, I like to know how to give custom tooltips to the data points in a line chart. Means, when i moved my cursor to a marker in line chart, it should show me a custom text rather than a data value. Quote Link to comment Share on other sites More sharing options...
AndreG Posted August 6, 2009 Report Share Posted August 6, 2009 All you have to do is change the tooltip format. http://support.softwarefx.com/OnlineDoc/CfxNet70//WinAPI/Chart_ToolTipFormat.htm Quote Link to comment Share on other sites More sharing options...
RandyJ Posted August 6, 2009 Report Share Posted August 6, 2009 Hi, The ToolTipFormat property allows to control the information to be displayed in the tooltip when the user moves the mouse over a particular data point in the chart. If you specify the "L" parameter, the tooltip will show the text property of the Point object. Chart1.ToolTipFormat = "%L" ; Chart1.Points[0, 0].Text = "Custom text" ; You just need to loop through the data you want to display for each point. Regards, RandyJ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.