in

Software FX Community

Discuss and find help for all Software FX products.

Statistical chart - series visibility

Last post 08-13-2009 3:47 AM by MJ27. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-13-2009 3:47 AM

    • MJ27
    • Top 100 Contributor
    • Joined on 09-24-2008

    Statistical chart - series visibility

     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

     

     

     

     

     

     

     

Page 1 of 1 (1 items)
Copyright 2008 Software FX, Inc.