Multiple MarksTip on one chart
Posted: 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.
Only the designPoints series in this example has tooltips.
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);