Pre loader

How do you export or save a chart as an image in JS library?

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

0
0

Fairly simple question: How do you export or save a chart as an image in the JS library?

Version
Latest
  • You must to post comments
1
0

Hi there

We have created an example showing how to export to image here.

This example uses dom-to-image npm module to export the chart to PNG image. This package exports html (used for legends), svg (used for annotations) and canvas (used everything else) elements.

To download the image we use the file-saver module.

For the export to work correctly position: relative should be set on the chart root element.

 <div id="scichart-root" style="position: relative"></div>

Please try the example and let us know if this meets your needs.

Best regards
Andrew

  • 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