Jump to content
Software FX Community

How Can I Add series dynamically?


elektra
 Share

Recommended Posts

I have the folowwing code:

this.chart1.Data.Series = 0; // When I create the chart, the default count of series is 3 , so I wanted to remove the series by resetting the count; It doesn't work

this.chart1.Data.Series ++; // the number of series becomes 4

this.chart1.Series[chart1.Series.Count - 1].Text  = "testName";  // the Text I is assigned to the 4th Element.

 

Is there a way to get it working. I have also tried chart1.Series.clear() and remove(), removeAt() => It doesn't work

 

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...