Open CAYdenberg opened 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).
ChartAsDataUri
In user-land we can create a link or img.
https://codepen.io/rebelchris/pen/rNevrXg
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.