yogesh.jariwala Posted July 28, 2009 Report Share Posted July 28, 2009 I am using the Pointtext in ChartFX7 for WinForms. When the ChartFX control loses focus (when I switch to a different view) and then return back to the control, the Pointtext does not appear when I hover the mouse over the point data in the chart! Is this a bug or is there a solution to fix the problem. Appreciate a prompt response! Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 28, 2009 Report Share Posted July 28, 2009 Hi, When you say "Pointtext", are you referring to the pointlabel tooltips? Could you please post a sample code showing the way you are setting these tooltips in code? Regards, RandyJ Quote Link to comment Share on other sites More sharing options...
yogesh.jariwala Posted July 28, 2009 Author Report Share Posted July 28, 2009 Hi Randy, That was a mistake. Sorry about that. The code snippet is given below: for (int i = EnvironmentCount; i < EnvironmentDetailsSource.Columns.Count; i++)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> { for (int j = 0; j < EnvironmentDetailsSource.Rows.Count; j++) TimeSeriesChartControl.Points [i, j].Text = "\r\n" + EnvironmentDetailsSource.Rows[j][Resources.TooltipColumnName].ToString(); } We are using the Text property of Points! Thanks for your help. Regards, Yogesh. Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 28, 2009 Report Share Posted July 28, 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 (see sample below), the tooltip will show the text property of the Point: Chart1.ToolTipFormat = "%L" ; Chart1.Points[0, 0].Text = "Custom Text" ; The same applies for the pointlabels theirselves. If you want the pointlabels to show the text value of the point, you need to set the pointLabels format as follows: Chart1.AllSeries.PointLabels.Format = "%L"; Chart1.Points[0, 0].Text = "Custom Text"; Regards, RandyJ Quote Link to comment Share on other sites More sharing options...
yogesh.jariwala Posted July 29, 2009 Author Report Share Posted July 29, 2009 We are using the same method. The problem occurs when I switch to a different window/view and then return back to my chart. This is when the tooltips do not work! Can you please suggest what is wrong. Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 29, 2009 Report Share Posted July 29, 2009 Hi,I have not been able to reproduce the issue on my side. Please send us an email to support at softwarefx dot com and include a compilable sample that replicates the issue and shows how exactly you are configuring the chart.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.