Hi All,
I have associated to series with a statistical histogram chart, namely series 1 and series 2. I am trying to set the visibility of the series to false by doing the following in code:
Chart.Series[1].Visible = false;
This series still shows up on the chart.
I am not having this issue with a normal chart like the sequential chart. For a normal chart doing the above will hide the series from the chart but the data for the series is still associated with the chart. i.e. in java script I can access the series on a UserCommand event like this:
var name = obj.Series.Item(1).Text ;
var dp = obj.Data.Item(0, 1); // obj.Data.Item(<series index>, <point index>)
I did find something on the forum regarding this issue but the fix, made the series invisible but that dis-associated the data for the series from the chart.
i.e. the suggested solution was:
Chart.Data.Series = Chart.Data.Series - 1;
but the following code was throwing an error in java script:
var name = obj.Series.Item(1).Text ;
var dp = obj.Data.Item(0, 1); // obj.Data.Item(<series index>, <point index>)
So, how do we make a series hidden for statistical chart. Is there some other procedure?
Any help would be really appreciated.
Thanks,
MJ