Multiple MarksTip on one chart

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
tkram01
Newbie
Newbie
Posts: 2
Joined: Fri Oct 11, 2019 12:00 am

Multiple MarksTip on one chart

Post by tkram01 » Fri Dec 13, 2019 10:22 pm

I am having an issue trying to add a MarksTip on each series in a chart. Only the last one added seems to be taking effect.

Code: Select all

MarksTip tip = new MarksTip(getChart());
        tip.setSeries(projectPoints);
        tip.setMouseDelay(0);
        tip.setToolTipResolver((o, s) -> s);
        getTools().add(tip);

        tip = new MarksTip(getChart());
        tip.setSeries(designPoints);
        tip.setMouseDelay(0);
        tip.setToolTipResolver((o, s) -> s);
        getTools().add(tip);
Only the designPoints series in this example has tooltips.

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

Re: Multiple MarksTip on one chart

Post by Yeray » Tue Dec 17, 2019 2:57 pm

Hello,

Excuse us for the delayed reply here.
Have you tried creating one single MarksTip tool without assigning it to any series? By default it should trigger for all the series in the chart.
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

tkram01
Newbie
Newbie
Posts: 2
Joined: Fri Oct 11, 2019 12:00 am

Re: Multiple MarksTip on one chart

Post by tkram01 » Mon Jan 06, 2020 4:04 pm

Thanks. That worked.

Post Reply