View Full Version : Graph series based on the check boxes

11 Feb 2013, 10:18 PM
I am having a graph with a lot of series. It is making confusion to view different series.
For this i keep check boxes, based on on the check box selection series should be visible.
I succeeded in this case.
But when the series type not showing for some series and all the series are showing square in the legend even i give triangle or circle .

Can any one please help me show series type in the graph.

Here is my code..

showChart : function() {
for ( var i = 0; i < 9; i++) {
if (this.averagesPanel.items.items[0].items.items[1].items.items[i].checked) {
this.profitsChart.series.items[i].showInLegend = true;
this.profitsChart.series.items[i].type = 'square';
this.profitsChart.series.items[i].showInLegend = false;

And attaching the images of my graph