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

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

Open
CAYdenberg opened this issue Oct 22, 2021 · 0 comments
Open

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

CAYdenberg opened this issue Oct 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@CAYdenberg
Copy link
Owner

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.

@CAYdenberg CAYdenberg added the enhancement New feature or request label Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant