plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.08k stars 1.02k forks source link

Export charts as Base64 image #1747

Closed jb-thery closed 2 years ago

jb-thery commented 3 years ago

Hello,

I think it would be a feature to be able to export graphics as base 64 images.

jb-thery commented 3 years ago

is it possible to pass a react ref to the nivo canvas graphics to be able to recover the canvas and export it to base64 images with the method toDataURL() ?

https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL

wyze commented 3 years ago

Some charts support forwardRef. Which ones are you trying to export?

jb-thery commented 3 years ago

hi, I need this on Piechart and bar chart (canvas version)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!