Page 1 of 1

Can we get mouse events on legend checkbox ?

Posted: Tue Jul 01, 2008 6:56 pm
by 7667591
Hi,

I want to listen to mouse events on legend checkbox. Is that possible ?
I see that you are drawing check boxes.

Thanks,
Varun

Posted: Wed Jul 02, 2008 9:33 am
by narcis
Hi Varun,

Yes, you can use mouse events as shown here and get clicked item like this:

Code: Select all

        int legendIndex = chart1.getLegend().clicked(e.getX(), e.getY());