How do I increase the width of the canvas dynamically?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Sudarshan on 27th June 2017

I am drawing bar chart i am increasing the canvas width dynamically as per the data it's showing for 2000px width if it is more than 3000 it's gone away is anything i am wrong in that ??? i need canvas width up to 5000 px
Posted by Richard on 27th June 2017
Hi there,

Are you redrawing the canvas after you resize it? Resizing a canvas clears it so you do need to call this:


Here's an example of a 5000px wide canvas:


Add a reply

« Back to message list