Hi,

According to the code you posted, nothing jumps out at me and everything
should work. In fact, here is a jsfiddle demonstrating your code working:
http://jsfiddle.net/mn3ayp6b/

I hope the jsfiddle can help you figure out what's wrong with your code. If
it's not, please post back with a full set of HTML and JavaScript files so
that we can better help you.

On Mon Nov 10 2014 at 2:05:47 PM <[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.
>

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