Well, I'm at a loss--I have literally the exact.  Same.  Thing.  That's what
I was thinking, the package must have loaded improperly.  Here's the whole
script if it helps.

    <script type="text/javascript" src="https://www.google.com/jsapi
"></script>
    <script type="text/javascript">

    // Load the Visualization API and the controls package.

google.load('visualization', '1.0', {packages:['corechart']});

    // Set a callback to run when the Google Visualization API is loaded.
    google.setOnLoadCallback(drawChart);

    // Main function
    function drawChart() {
 // Data
var data = google.visualization.DataTable();
data.addColumn('string', 'API Name');
data.addColumn('number', 'Status');
data.addRows([
['API Name','Status'],
['Login',1],
['TVOD',2],
['Headends',3],
['Channel',4]
]);
 var options = {'title':'API Status',
'width':400,
'height':300};
var chart = new
google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data,options);
}
</script>

On Wed, Oct 12, 2011 at 2:05 PM, asgallant <[email protected]>wrote:

> I typically see this when one of two things happens: 1) the script doesn't
> load the visualization API properly, or 2) the script doesn't wait for the
> API to finish loading before trying to use it.  Make sure you have it set up
> something like this:
>
> google.load('visualization', '1', {packages: ['corechart']});
> google.setOnLoadCallback(drawVisualization);
> function drawVisualization() {
>    // create and draw the visualization
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/Qoaa007Z4VEJ.
>
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>



-- 
Haikus are easy
But sometimes they don't make sense
Refrigerator

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to