Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to export BarCanvas or other chart to base64 image? #698

Closed
arwanfiles opened this issue Oct 4, 2019 · 1 comment
Closed

How to export BarCanvas or other chart to base64 image? #698

arwanfiles opened this issue Oct 4, 2019 · 1 comment

Comments

@arwanfiles
Copy link

Hi, can I generate image and convert it to base64 from nivo chart?

I want to using it for viewing a chart on pdf document.

Regards.

@plouc
Copy link
Owner

plouc commented Nov 27, 2019

This is not part of nivo, but you have several way to do so, you can for example use react-dom/server to generate an SVG file, or you can use puppeteer to generate the image (that's what I do for the READMEs), you might also find some library that are able to do this purely on the client side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants