Hello all,
I'm currently working on an application that consists of three pages, of which the second contains numerous charts powered by HighCharts.
The charts render correctly when initializing them in "pageinit", but the width of the charts doesn't match the container properly. The charts seem to have the same width as the entire screen, not taking into account the padding in the div or it's actual width. By setting a timeout and thus initting the charts after the second page was selected I can get the charts to render properly.
So I've been trying to have the charts init only after the second tab was selected by the user, what would be the best way to accomplish this? So far I've tried using the many jQuery mobile events, such as "pageload" and "beforepageload", but they either don't fire at all or fire too soon (causing the charts to be too wide again).
Any help would be greatly appreciated!