google.charts.load() cannot be called more than once ?

5,378 views
Skip to first unread message

Sahra Dilmaghanyan

unread,
Apr 11, 2016, 5:48:36 PM4/11/16
to Google Visualization API
Hi,
I 'd like to call google chart more than once by changing the data from a dropdown list. I called Google Chart as a widget including AppAsset that call 'js/loader.js' in Yii2.I used the latest version of Google Chart But I got this error when I change the dropdown list item:

Uncaught Error: google.charts.load() cannot be called more than once with version 44 or earlier.

and loader.js is not reloading, as a result the chart area is empty. 
How can I fix this problem?

Thanks,
Sahra

Daniel LaLiberte

unread,
Apr 12, 2016, 9:20:33 AM4/12/16
to Google Visualization API
If you want to draw your chart by changing your data, you can do that.  You don't need to call google.chart.load() again to do so.  Just separate out the code that calls google.chart.load() so that it is called only once.


--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/8be7fc60-c988-4622-9c46-8e6b0c96fdf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Yassine MOUBARAK

unread,
Jun 23, 2016, 9:09:52 AM6/23/16
to Google Visualization API
It works , thank you !

Gowri sankar Sankar

unread,
Jul 28, 2016, 9:37:56 AM7/28/16
to Google Visualization API
Hi,
 
I have the problem on google calendar chart,  which console  google.charts.load() cannot be called more than once with version 45 or earlier.  I am using angular for front end. Where should i
    put this code on my project.
                                     
  google.charts.load("current", { packages: ["calendar"] });
  google
.charts.setOnLoadCallback(drawChart)

 
     Thanks,
      Gowrisankar A

Vishnu C

unread,
Aug 27, 2016, 1:36:56 AM8/27/16
to Google Visualization API


On Tuesday, April 12, 2016 at 6:50:33 PM UTC+5:30, Daniel LaLiberte wrote:
If you want to draw your chart by changing your data, you can do that.  You don't need to call google.chart.load() again to do so.  Just separate out the code that calls google.chart.load() so that it is called only once.

On Mon, Apr 11, 2016 at 5:48 PM, Sahra Dilmaghanyan <dsah...@gmail.com> wrote:
Hi,
I 'd like to call google chart more than once by changing the data from a dropdown list. I called Google Chart as a widget including AppAsset that call 'js/loader.js' in Yii2.I used the latest version of Google Chart But I got this error when I change the dropdown list item:

Uncaught Error: google.charts.load() cannot be called more than once with version 44 or earlier.

and loader.js is not reloading, as a result the chart area is empty. 
How can I fix this problem?

Thanks,
Sahra

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



-- Its Workd Thanks
Reply all
Reply to author
Forward
0 new messages