CAYdenberg / hypocube

Composable, responsive, React-based data visualization
https://hypocube.livingpixel.io
MIT License
0 stars 1 forks source link

Some way of getting an image out of a Chart #90

Open CAYdenberg opened 2 years ago

CAYdenberg commented 2 years ago

https://codepen.io/rebelchris/pen/rNevrXg

<ChartAsDataUri>
(base64: string) =>
</ChartAsDataUri

ChartAsDataUri should debounce and capture canvas rendered image as string by accessing the canvas ref via ChartState. It should not render anything since we don't know what we'll be rendering at that point (HTML, SVG or canvas).

In user-land we can create a link or img.