Controlling selection of items in Legend

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
roop
Newbie
Newbie
Posts: 7
Joined: Wed Aug 06, 2014 12:00 am

Controlling selection of items in Legend

Post by roop » Thu Mar 19, 2015 12:02 pm

Hi,

I have checkboxes set to true in my legend, also I have constructed a panel to either "Select All" or "Select None". Is there a property that can trigger the deselection of all the items in the legend when Select None button is clicked. I tried looking at the properties but could not find which property is set to indicate that the legend item is selected. I am using FastLine chart and i can see one of the properties is "showInLegend", but the item is completely disappearing if I set the property to false. Any help would be appreciated.

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

Re: Controlling selection of items in Legend

Post by Yeray » Thu Mar 19, 2015 3:19 pm

Hello,

You just have to change the Active property of the series and it will be synchronized with the according checkbox in the Legend.
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

Post Reply