Jump to content
Software FX Community

Constant Line: How to eliminate the tool tip, but keep the text


User (Legacy)
 Share

Recommended Posts

I'm using a constant line object to track the mouse. I'm also setting the

text property of the line so that it displays the current location. The line

text is nicely drawn along the line at the edge of the chart. Unfortuantely,

if I set the line text, I ALSO get a tooltip which obscures the data on the

chart. The tooltip and line text display the exact same information.

Is there a way to keep the text but loose the tooltip? I don't need to see

the information twice.

This is the code to draw the constant line

line.ShowLine = true;

line.Axis = ChartFx.AxisItem.X;

line.Value = chart.AxisX.PixelToValue(args.Y);

line.Text = string.Format("Height: {0}",

chart.AxisX.PixelToValue(args.Y).ToString("F2"));

previousXlocation = newXlocation;

Thanks

Mitch

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.

 Share

×
×
  • Create New...