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

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 Christopher, we don’t have that functionality yet. But we do have this task on our board. So we’re going to do it in the near future.

  • You must to post comments
0
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 2 results
Your Answer

Please first to submit.