Page 1 of 1

For showing tooltip on a overlaped series

Posted: Tue Dec 29, 2015 12:07 pm
by 9526439
Hi Steema Support,
When add two series, series1 (blue color) and series2 (point) in a chart respectively. The tool tip of series2 will not appear when it overlap on series1. If series2 (point) move from series1 and then mouse hover on series2 (point), the tooltip will show.
So please suggest how to show tooltip of series2 (point) when both series overlap to each other.
Pease find attachments.
ToolTip.png
ToolTip Image
ToolTip.png (34.99 KiB) Viewed 6173 times
Thanks & Regard
Plano Research

Re: For showing tooltip on a overlaped series

Posted: Tue Dec 29, 2015 12:40 pm
by yeray
Hello,

I've tried to reproduce this with the code below but it seems to work fine for me here.
In a new simple project with a new TChart:

Code: Select all

      Chart1.Legend.Visible = false;

      Line line1 = new Line(Chart1.Chart);
      line1.FillSampleValues(10);
      line1.Pointer.Visible = true;

      Points point1 = new Points(Chart1.Chart);
      point1.Add(line1.XValues[4], line1.YValues[4]);
      point1.Add(line1.XValues[7], line1.YValues[7]);

      MarksTip markstip1 = new MarksTip(Chart1.Chart);
      markstip1.Style = MarksStyles.SeriesTitle;
This gives me "line1" when I move the mouse over the line series, and I get "point1" when I move the mouse over any of the two points on the point series:
markstip.png
markstip.png (10.29 KiB) Viewed 6169 times
To change the behaviour above and force the tool to always show "line1", also on the overlapping points I can achieve it adding this line:

Code: Select all

      markstip1.Series = line1;
If you still find problems with it, please modify the code above or arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.