I need to draw a dynamically-generated diagram onto the page and have thus far been using a canvas element. Unfortunately, some users have diagrams so large that the resulting canvas exceeds the size limitations of mobile browsers - the result is an empty canvas.
I have tried drawing onto smaller tiled canvasses, but this is inefficient as the drawing needs to be done multiple times.
I've also tried creating a single large canvas in memory and then using drawImage to slice it up onto smaller tiled canvasses. This fails because the in-memory canvas exceeds maximum canvas size (even though it has not been appended to the DOM).
I'm looking for any suggestions on how to get a large dynamic diagram drawn onto the page when it's width/height aren't known in advance.
Thanks!