Jump to content
Software FX Community

Forced series problem.


jfox3721
 Share

Recommended Posts

I have added a chart to my winform in VB.NET 2008 using the wizard and I selected the 'MultiSeries' option because I plan on dynamically adding different number of series depending on user input.  In design mode the chart, by default, has three series present.   When I go into the 'Series' property and delete any of the series and click 'OK' it will automatically go back to having three.   This same behavior is effecting my code when dynamically adding new series.  How do I prevent this 'forced series' problem from happening?

MultipleCallBacks.zip

Link to comment
Share on other sites

 So do I need to call the chart.opendata command before configuring my series?

 As of now, I do the following

 

Chart1.Series.Clear

For i as integer = 0 to numberOfSeries-1

Dim newSeries as new SeriesAttributes

...configure series

  Chart1.Series.add

Next

Chart1.OpenData(COD.Values, numberOfSeries,numberOfPoints)

  ...add data for each series

Chart1.CloseData(COD.Values)

 

 

Link to comment
Share on other sites

  • 4 weeks later...

 So do I need to call the chart.opendata command before configuring my series?

 As of now, I do the following

 

Chart1.Series.Clear

For i as integer = 0 to numberOfSeries-1

Dim newSeries as new SeriesAttributes

...configure series

  Chart1.Series.add

Next

Chart1.OpenData(COD.Values, numberOfSeries,numberOfPoints)

  ...add data for each series

Chart1.CloseData(COD.Values)

 


 

 

 


You can simply  open the COD values and the series should be created automatically. Atleast thats what happens in 6.2

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