Long story short, I use Alpha 5 as my development tool and was able test
using Google Charts API per some of your examples (and assistance from a
previous post). So using your static chart example, I modified my code to
connect to our SQL database and retrieve data to display in the chart,
rather than using static, hard coded data. I can confirm it's connecting
to our data source and returning the correct data by stepping through my
code and checking the values of the chart data, but the chart doesn't get
rendered. I get a pop up that says:
When I check the Firefox debugger, it says:
ERROR NOT AN ARRAY
function hga(a,b){var c={};if(!ki(a))throw m("Not an array");
*Here is my JavaScript function:*
function drawChart() {
var chartdata = {dialog.object}._data;
var data = google.visualization.arrayToDataTable(
chartdata
);
var options = {
title : 'Cost of Quality',
is3D: true,
};
var chart = new
google.visualization.PieChart(document.getElementById('mychart'));
chart.draw(data, options);
};
And the value of {dialog.object}._data = [['Type', 'Cost'],['CUSTOMER
RETURN', 1405],¶['INTER-COMPANY', 100],¶['REWORK', 200],¶['SCRAP',
100],¶['SETUP SCRAP', 110],¶['VENDOR RETURN', 5],¶['WARRANTY RETURN', 800]];
Can anyone shed some light on this error? I'm at a loss. Thanks.
--
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.