First, you need to remove the view parameter from the PieChart's
ChartWrapper - it is not needed since you are constructing a new DataTable
for the PieChart to draw from.
var pie = new google.visualization.ChartWrapper({
chartType: 'PieChart',
containerId: 'chart1',
options: options
Hi Andrew,
Thank you so much. I changed my code and it worked perfectly. But still I
am seeing another problem.
I have code to calculate total kbUsage for perticular MDN. That was working
before. But now it just gives total no of rows returned from the DB,
instead of total of all kbUsage.
That is a strange effect; I wonder if it is using the modified value from
the grouping column? Try changing the column index of the grouping column
(since it doesn't really matter which one you use, in this case):
var group = google.visualization.data.group(newData , [{
// we need a key
Hi Andrew,
When I remove the PieChart from the Dashboard.bind call, i dont see pie
chart image in my page. and also i get an error that says
Invalid column index 2. Should be an integer in the range [0-1].
Thanks
On Friday, August 1, 2014 8:38:08 PM UTC-4, Andrew Gallant wrote:
You need to
Can you post the current version of the code you are using, along with a
sample queryObject I can use to test this?
On Tuesday, August 5, 2014 1:46:15 PM UTC-4, saKw wrote:
Hi Andrew,
When I remove the PieChart from the Dashboard.bind call, i dont see pie
chart image in my page. and also
Code--
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'mdn');
data.addColumn('string', 'category');
data.addColumn('number', 'kbUsage');
//alert(inside drawChart);