chart wont load correctly

473 views
Skip to first unread message

Yaniv Ida

unread,
Sep 26, 2019, 4:01:51 AM9/26/19
to Google Visualization API
Hi all 

I created two chart in my angularJs project, a bar chart and a column chart 

and I switch between them on button click

well must of the time the chart wont load correctly and it seems that they got stuck while loading 
It happens even if i set only one chart on page and no switching 
What am i  doing wrong ? 

sample 1 - it wont load at all 


wrong.png


sample 2- loads but look ...

wrong2.png


sample 2 - correct (some other chart )

correct.png




Daniel LaLiberte

unread,
Sep 26, 2019, 9:45:49 AM9/26/19
to Google Visualization API
Google Charts still requires that the chart is visible when you draw it, so that it can tell how well ticks fit and similar issues.  
So you need to figure out how to get Angular to only draw the chart when it is visible.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/172b4507-b5f1-47ad-bd93-09dcbb73c7ef%40googlegroups.com.


--

Yaniv Ida

unread,
Oct 3, 2019, 2:54:24 AM10/3/19
to Google Visualization API
Found the problem 

I set the font family "open sans" and that cause the problem 
maybe it is the space or i dont know what


On Thursday, September 26, 2019 at 4:45:49 PM UTC+3, Daniel LaLiberte wrote:
Google Charts still requires that the chart is visible when you draw it, so that it can tell how well ticks fit and similar issues.  
So you need to figure out how to get Angular to only draw the chart when it is visible.

On Thu, Sep 26, 2019 at 4:02 AM Yaniv Ida <yani...@gmail.com> wrote:
Hi all 

I created two chart in my angularJs project, a bar chart and a column chart 

and I switch between them on button click

well must of the time the chart wont load correctly and it seems that they got stuck while loading 
It happens even if i set only one chart on page and no switching 
What am i  doing wrong ? 

sample 1 - it wont load at all 


wrong.png


sample 2- loads but look ...

wrong2.png


sample 2 - correct (some other chart )

correct.png




--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages