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.