Page 1 of 1

Multiple MarksTip on one chart

Posted: Fri Dec 13, 2019 10:22 pm
by 17487178
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.

Re: Multiple MarksTip on one chart

Posted: Tue Dec 17, 2019 2:57 pm
by yeray
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.

Re: Multiple MarksTip on one chart

Posted: Mon Jan 06, 2020 4:04 pm
by 17487178
Thanks. That worked.