For showing tooltip on a overlaped series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

For showing tooltip on a overlaped series

Post by amol » Tue Dec 29, 2015 12:07 pm

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 6103 times
Thanks & Regard
Plano Research

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: For showing tooltip on a overlaped series

Post by Yeray » Tue Dec 29, 2015 12:40 pm

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 6099 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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply