Within my IDE, I needed to set a property for JavaScript, Linked Files to 
https://www.google.com/jsapi

Once I set that, everything worked as expected.  Thank you for the info on 
jsfiddle...what a great reference!

On Monday, November 10, 2014 2:05:44 PM UTC-5, [email protected] wrote:

> I'm a complete newbie to the Google Charts API and I'm experimenting with 
> some of your examples and having difficulty.  Our development tool is Alpha 
> v11.  I downloaded your API and added it to the JavaScript directory of my 
> project but I also reference it in the html because I'm not sure I have it 
> setup correctly. I am getting the error outlined in the subject of this 
> post. It's as if the Google Charts API is not being loaded or initialized 
> and wondered if anyone has any idea as to why.
>
> *my html:*
>
> <!doctype html>
> <!-- per example at 
> https://google-developers.appspot.com/chart/interactive/docs/gallery/combochart
>  
> -->
> <script type="text/javascript" src="https://www.google.com/jsapi";></script
> >
> <script type="text/javascript">
>       google.load("visualization", "1", {packages:["corechart"]});
>
>       // Set a callback to run when the Google Visualization API is loaded.
> // this is commented out because I plan to eliminate the on click button 
> press and render the chart automatically but this is not important for now
>       // google.setOnLoadCallback(drawChart);
> </script>
> <div id="mychart" style="HEIGHT: 3in; WIDTH: 3in">chart will show 
> here</div>
>
> *I have a button that when pressed calls the javascript function to create 
> and draw the chart:*
>
> function drawChart() {
>   // Some raw data (not necessarily accurate)
>   var data = google.visualization.arrayToDataTable([
>     ['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua New Guinea', 
> 'Rwanda', 'Average'],
>     ['2004/05',  165,      938,         522,             998,           
> 450,      614.6],
>     ['2005/06',  135,      1120,        599,             1268,          
> 288,      682],
>     ['2006/07',  157,      1167,        587,             807,           
> 397,      623],
>     ['2007/08',  139,      1110,        615,             968,           
> 215,      609.4],
>     ['2008/09',  136,      691,         629,             1026,          
> 366,      569.6]
>   ]);
>   var options = {
>     title : 'Monthly Coffee Production by Country',
>     vAxis: {title: "Cups"},
>     hAxis: {title: "Month"},
>     seriesType: "bars",
>     series: {5: {type: "line"}}
>   };
>   var chart = new 
> google.visualization.ComboChart(document.getElementById('mychart'));
>   chart.draw(data, options);
> }
>
>
>
>
>
>

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to