Jump to content
Software FX Community

Pointtext does not work


yogesh.jariwala

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...