Fairly simple question: How do you export or save a chart as an image in the JS library?
-
Also see related question https://www.scichart.com/questions/js/rendering-a-chart-in-memory
- You must login to post comments
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
- Andrew Burnett-Thompson answered 3 years ago
- You must login to post comments
Please login first to submit.