I put the chartContainer div in a “toggle” div that is hidden on load of the page.
When I show this div, the graph is not displaying as it should be : only 500px wide.
It only displays as it should when I resize the browser window.
I hope you understand my case.
How can I fix this?
Thank you in advance for your help.
This topic was modified 3 years, 5 months ago by NynjA.
Thanks Sunil, I got this working I was defining chart inside a function so it didn’t have global scope, oops.
Other than that this fixes it but it seems to “flick” into the correct size, not the prettiest. Do you think you will have a built in fix for this at some point? Thanks for the great work though, canvasjs is a great tool.