Jump to content
Software FX Community

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


User (Legacy)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...