Accessing/Toggling series in a chart
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:
Code:
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!