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">
// 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([
['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);
}
--
Haikus are easy
But sometimes they don't make sense
Refrigerator