Yoctol / react-d3-cloud

A word cloud react component built with d3-cloud.
https://yoctol.github.io/react-d3-cloud
MIT License
138 stars 47 forks source link

Converting cloud image/base64 data string #115

Closed finbar123 closed 3 years ago

finbar123 commented 5 years ago

Hi is it possible to generate / return a base64 data string of the tag cloud so we can pass it to another component.

Thanks

Finbar

chentsulin commented 3 years ago

IMO, this kind of job (generate base64 data string) should not be done by a react component. You may want to try using d3-cloud directly and then export base64 data string from underlying canvas.