TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
-
tkram01
- Newbie
- Posts: 2
- Joined: Fri Oct 11, 2019 12:00 am
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
- Posts: 9614
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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.
-
tkram01
- Newbie
- Posts: 2
- Joined: Fri Oct 11, 2019 12:00 am
Post
by tkram01 » Mon Jan 06, 2020 4:04 pm
Thanks. That worked.