Jump to content
Software FX Community

Multiple series with multiple "load"methods


ehlaban
 Share

Recommended Posts

I'm exploring ChartFX at the moment, Can get most things to works and the component look

good!.

I'm loading data from an excel sheet with a oledbconnection etc and pass the data like

Chart1.DataSource = DtSet.Tables(0). Perfect works oke.

 I also look at the data passing examples and recreated them, fine as well.

 

One thing i can't get to work is after loading the initial data by database to add

different series in the same chart/pane, or any other pane for that matter,

with a different data passing method be it arrays, Chart1.Data.X etc etc.

Only with doing a Chart1.Reset() i can get the new data to load and show oke. But

then ofcourse the initial series is gone.

 

so first i load from an excel sheet a line series and then later by clicking a button i want

to show in the same chart a generated line, next to the first line from the excel file, which i load for instance

by the apibutton method or array from the passing data sample

 

Regards, E.H. Laban

Link to comment
Share on other sites

All the DataBinding methods replace the data in the chart with new data, which can be of a completely different format (different number of columns, different column types, etc.).

 If you want to add data to an existing chart without loosing the data already there, then you need to use the Data APIs (chart.Data).

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