-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Create a chart from a detached canvas element #4067
Comments
My code below: var canvas2 = document.createElement('canvas'); is this possible ? |
@sathiya46 I think you need to set |
When responsive = true; Code used for generating canvas: Current options that I am using for the chart being created from the above code, Just need to know if it is even possible to do this kind of approach using chartjs ? Thanks |
@sathiya46: it should be possible as long as you don't expect responsiveness (i.e. attach the canvas to the DOM after the chart creation with Can you try to upgrade your environment? |
Duplicate of #3790? |
@ me 😉 |
haha, just noticed I mentioned the wrong person :) |
Closing as duplicate of #3790 |
@sathiya46 It took some time but it should work now (#4591) :) Are you able to test this development build and confirm that it works as you expect? |
@simonbrunel, hi, I have problems with dynamically created canvases in 2.8.0 version.
As a result, I have empty canvases. |
I am trying to create a canvas dynamically in JavaScript and use the same for drawing the chart, Is it possible to draw charts before appending the created canvas to a div element ?
Environment
The text was updated successfully, but these errors were encountered: