PDA

View Full Version : Accessing/Toggling series in a chart



alex9311
8 Jan 2013, 11:01 AM
Hi all,

I'm trying to access the series on my chart so I can show and hide my lines with button actions. I cant find any sort of getSeries() method for charts, or documentation of how to hide/show series once I access them.

I'd like to do something like this:


daily:function(button){
var panel = button.up('panel'),
chart = panel.down('chart'),
series = chart.getSeries();
console.log(series);
series[1].hide();

},


If anyone has some pointers on how to go about this it would be much appreciated

Thanks!

mitchellsimoens
10 Jan 2013, 10:46 AM
Could just use chart.series, it's a mixed collection