0

I am trying to build an FFT plotting program. I've got all I need for the FFT's but now I'm stuck on plotting. I want to allow the user to turn on a plot of the input data and the output data. I want them to be able to have them on the same chart or not. Currently the code I've got is

if(myCheckBox.Checked == true)
{
for(int i = 0 ; ...)
      {chart is filled}
}
else
{
  turn off series being displayed  
}

It's this else part that I am having severe trouble with and was hoping to get a couple of pointers(Ha!).

2
  • Which charting library are you using ?
    – Larry
    Feb 20, 2013 at 19:54
  • The System.Windows.Forms.DataVisualization.Charting library Feb 20, 2013 at 19:56

1 Answer 1

0

To hide a series in MSChart, use the Enabled property this way :

msChart.Series["Series"].Enabled = false;

and to show it again :

msChart.Series["Series"].Enabled = true;
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.