Legend - number of items displayed

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Chen
Newbie
Newbie
Posts: 43
Joined: Tue Mar 11, 2008 12:00 am
Contact:

Legend - number of items displayed

Post by Chen » Thu Oct 23, 2008 10:59 pm

Hi,

Sometimes I will have too many entries in my legend.
I would like to set number of items to be shown in the legend.

I see that there is a setFirstValue(int index) in Legend, but there is no setLastValue(int index) even though I can ask for getLastValue().

Thanks,
Varun

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Oct 24, 2008 9:00 am

Hi Varun,

I'm afraid this is not possible for now. I've added your request to the wish list to be considered for inclusion in future releases.

What you can do now, if displaying series names in the legend, is choosing which series you want to be in the legend using this:

Code: Select all

        myChart.getSeries(0).setShowInLegend(false);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply