Pre loader

Is it possible to reuse created scichart and wasmcontext?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Currently, I am creating a line chart and appending a lot of fetched data to the data series. The problem is that I have to recreate the chart when I move to another page that is using the same chart from the previous page. Therefore, I have to fetch the data and append it to the chart data series again.

Is there any way to reuse the chart itself without recreating the whole chart on another page?

Version
2.1.2267
  • You must to post comments
1
0

Hello,
If in your case by “move to another page” you mean navigation within SPA routing (without page reload), then yes.
You just need to keep your chart component always mounted (do not detach the chart root element) and reuse the chart by storing a reference to the surface.

Also, there is an option of storing the whole or partial chart state as a JSON object.
Here is the documentation page related to the Serialization/Deserialization

https://www.scichart.com/documentation/js/current/Intro%20to%20the%20Builder%20API.html

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies