Jump to content
Software FX Community

Statistical chart - series visibility


MJ27
 Share

Recommended Posts

 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

 

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...