SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

1
0

Hi!

I would like to ask what is the best strategy to implement 1-to-many relationship between DataSeries and SciChartSurfaces, when charts are shown in a second window and presumably rendered in its UI thread.

Currently I have a root object in the main window that creates and carry updates for a single DataSeries. The object has a property that creates a new SciChartSurfaces instance programmatically everytime, as the property is read. As a chart is created, I assign the same DataSeries as source for chart’s RenderableSeries.

This approach allows me to multiple charts in the second window and all these chart share the same dataseries on the root object. However, I have some issues with flicking, re-rendering and updating. For example, only the most recently created chart redraws after updates in the dataseries. I use dataSeries.SuspendUpdates() and batch Append but I guess it works only for the last chart.

I attached here a screenshot showing what happening when the shared DataSeries is filled with random values in real-time.

Could you recommend something for this scenario?

Thanks in advance,

Ilia

Attachments
  • You must to post comments
0
0

Hi Andrew,

Thanks for this info and upcoming article, I am very interested. I’ve seen ParentSurface property in IDataSeries and understand that only one (lastly created?) chart is referenced there. I use ‘using (var v=DataSeries.SuspendUpdates())’ but it does not help with multiple charts. What If I raise a priority of the DataSeries thread, such that data get updated faster than re-rendering of charts in another window’s thread? Would it help with flickering?

Sincerely,
Ilia

  • Andrew
    Hi Ilia, you added an answer, but its not a forum. The answers are reserved for actual answers to the question. Instead, please comment on my comment. Its just like www.StackOverflow.com !
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.