corecharts

51 views
Skip to first unread message

Floriano Sabatini

unread,
Feb 28, 2014, 1:48:12 PM2/28/14
to google-visua...@googlegroups.com
Today suddenly an application where I was using corecharts stopped to work.

I solved the problem juts changing the release of 'visualization'
From: google.load('visualization', '1.0', {packages:['corechart']})
To: google.load('visualization', '1.1', {packages:['corechart']})

Not clear why this problem happen suddenly.
Thanks
Floriano

asgallant

unread,
Feb 28, 2014, 1:59:49 PM2/28/14
to google-visua...@googlegroups.com
Could you post details about the problem?

Floriano Sabatini

unread,
Feb 28, 2014, 2:12:46 PM2/28/14
to google-visua...@googlegroups.com
Sorry if my 'language' is not correct, in fact I'm not an expert at all of programming but I was able to build an html file to display some parameters.

I used both gauges and barcharts using the following instrucions.

google.load('visualization', '1.1', {packages: ['gauge'], callback: drawChart});
google.load('visualization', '1', {packages:['corechart']});
google.setOnLoadCallback(drawChart);

everything worked very well for a number of days but suddenly this morning I found that no charts was visible on my tablet.

To solve the problem I changed the release of the visualization of the core chart from 1 to 1.1.

I know that release 1 is the 'official' one, while the release 1.1 is a sort of experimental one.

To be honest I have not more details.
Saluti
Floriano




--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/kF-Tb4sG-Vg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

asgallant

unread,
Feb 28, 2014, 2:40:54 PM2/28/14
to google-visua...@googlegroups.com
One thing you should fix is the google.load calls.  The API supports only 1 call, which should look like this when loading the "gauge" and "corechart" packages:

google.load('visualization', '1', {packages: ['gauge', 'corechart'], callback: drawChart});

When you specify the "callback" parameter in the loader, you don't need to call google.setOnLoadCallback as well.  Try that and see if it fixes your problem.  If it doesn't, post the whole javascript code that you are using to draw the charts and I'll take a look to see if I can figure out what is causing the problem.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

Floriano Sabatini

unread,
Feb 28, 2014, 3:11:49 PM2/28/14
to google-visua...@googlegroups.com
Many thanks.
It works
My mistake was to call two times google.load......

The only strange thing is that it worked for many days until today.
why?


To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

Daniel LaLiberte

unread,
Feb 28, 2014, 3:28:22 PM2/28/14
to google-visua...@googlegroups.com
Floriano, it probably worked for you for a few days because, after we complete one release and before we start the next one, both 1 and 1.1 are the same code (And "1" defaults to "1.0").  I started the next release cycle yesterday (unannounced, sorry) so now 1.1 is the next version while 1.0 is the current version.  Loading different parts of the library from different versions of the code is not a good idea.

While in the past, it did not work to load the visualization software (i.e. google.load('visualization',...)) more than one time, we made changes in the last few months so it is actually possible to do that, though not with different versions, and there are still some hiccups in the updating of servers, especially while we are updating revisions.   So it is still discouraged.



--
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 post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Floriano Sabatini

unread,
Feb 28, 2014, 3:36:19 PM2/28/14
to google-visua...@googlegroups.com
Now it is clear, thanks and congratulation for your professionality. Never met someone that was replying so faster and so effectively to a question.
Grazie
Floriano
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/kF-Tb4sG-Vg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Feb 28, 2014, 3:40:22 PM2/28/14
to google-visua...@googlegroups.com
I'm always glad to help.  And of course Drew Gallant deserves considerably more praise for his always helpful advice and assistance.

dan


To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages