Page 1 of 1

Legend - number of items displayed

Posted: Thu Oct 23, 2008 10:59 pm
by 7667591
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

Posted: Fri Oct 24, 2008 9:00 am
by narcis
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);