Hi It's not clear whether you are using the correct loader with your google.charts calls. You must be loading the www.gstatic.com/charts.loader.js rather than the jsapi loader. This documentation spells out the details: https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code And the mapsApiKey setting only works, so far, with v45 loaded with the gstatic loader.
If you are loading the library correctly, then we can look into what happened. Can you point us at a page that demonstrates what you are seeing? It is difficult to guess what might be happening otherwise. Thanks. On Mon, Nov 14, 2016 at 4:55 PM, moresugarmore <[email protected]> wrote: > Hello, > > I am getting the google api key error for my google chart maps. > > I am fetching data from which I am displaying a variety of charts. This > meant that I needed to be able to load the google api and set a callback > and pass the callback the data I just got from the ajax. > > > google.load('visualization', '1.0', > {'packages':['corechart','bar','table','controls','map'] > , "callback" : function() > { > buildCharts(data); > } > }); > > > I wasn't able to pass data using the way described in the documentation. > > google.charts.setOnLoadCallback(drawChart); > > > ... which is why instead I included the jsapi and then loaded the > visualization module that way. This seemed to be the only way I can both > specify a callback and also give that callback data. > > But now I have the API key error and I read that I need to use v45 or > "upcoming". This doesn't appear to be a valid setting for version when > loading the google visualization module in this way. And it also doesn't > seem to be using the <mapsApiKey> param. > > > Is there a way for me to do a callback and also pass data using > "setOnLoadCallback" so that I can load the google charts using: > > google.charts.load(*'43'*, {packages: ['corechart']}); > > > ??? Or can someone help me figure out the correct way for me to call the > module, tell it what version to use and give it an api key? > > Thank you! > > -- > 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 [email protected]. > To post to this group, send email to google-visualization-api@ > 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/c496f7e6-d605-4604-b317- > ba5ff3bbd56a%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/c496f7e6-d605-4604-b317-ba5ff3bbd56a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAOtcSJOYhji4bO7eLqz8MUZq13L%2BLEKxEJSGqzFapwAKbEnEcQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
