PDA

View Full Version : Show / Hide series in a line chart?



Arntor
7 Feb 2012, 5:29 AM
I'm trying to hide and show certain series in a line chart.

First i tried:
Chart.series.clear();
then i add the needed series one by one,
then Chart.redraw();
and this is the result:
31441

as you can see the background is not redrawn after i do this.

Next i tried Chart.series.items[0].showAll(); and Chart.series.items[0].hideAll();
and the result is even worse:

31442

so how do i force this to refresh the background when i call the redraw function?

mitchellsimoens
7 Feb 2012, 6:39 AM
On the series, there is a hideAll method.

Arntor
7 Feb 2012, 6:43 AM
hello,
did you read the second part of my post?
i tried with
hideAll but it is not rendered properly ...

mitchellsimoens
7 Feb 2012, 6:53 AM
hideAll is used internally to hide a series

Arntor
7 Feb 2012, 11:42 PM
ok, but i really don't understand what should i do in this case?