I use Google line chart almost exactly as a demo - only the data has changed - inside this jQuery tab plugin is unchanged. Maybe in 50% of cases, the chart will load at a speed of 400x200, even if it is set to load at 700x250. The containing div will have the correct width and height, but the chart displayed by the API will load inside this 400x200 area.
I suspect this is because tabs are not displayed when the API tries to display. Because of this, he tries to display in something that he considers to be zero, and therefore forces himself to the lowest resolution by default.
My thought is that if the graph display can be delayed until the corresponding tab is clicked, this will solve the problem. Unfortunately, I have no idea how to do this, and my research has not been fruitful. The closest I could find was this stream , but I did not find any real answers there.
I would be grateful for any advice if you have, and I would be happy to follow up with additional information if necessary.
javascript jquery google-visualization charts tabs
user1881190
source share