Remove certain series from Legend

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
froggyware
Newbie
Newbie
Posts: 21
Joined: Tue Nov 15, 2011 12:00 am

Remove certain series from Legend

Post by froggyware » Tue Apr 10, 2012 11:52 am

Hi,

Could you please tell me how is it possible to remove a certain series from the Legend?

I did not figure this out yet.

Thanks!
Steven

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

Re: Remove certain series from Legend

Post by Yeray » Wed Apr 11, 2012 3:09 pm

Hi Steven,

Yes, you can use:

Code: Select all

tChart1.getSeries(seriesIndex).setShowInLegend(false);
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

froggyware
Newbie
Newbie
Posts: 21
Joined: Tue Nov 15, 2011 12:00 am

Re: Remove certain series from Legend

Post by froggyware » Fri Apr 13, 2012 10:25 am

thanks a lot!!!

Post Reply