plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries

Home Page:https://nivo.rocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to export BarCanvas or other chart to base64 image?

arwanfiles opened this issue · comments

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.

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.