Hi,
I am using google visualization for various charts.
I tried to draw piecharts with array data but I got the error when I use
draw().
The problem is that I got the error randomly and rarely even though the
array data is same.
Is there someone who have any ideas about it?
Below is my work.
--------------------------------------------------------------------------------------------------------------------------------------------------------
var pieDataArr = [["test1", 2], ["test2", 1], ["test3", 1], ["test4", 1],
["test5", 0]];
var data = google.visualization.arrayToDataTable(pieDataArr);
var options = {
title : titleOption,
titleTextStyle : {
fontSize : 15
},
width : chartWidth,
height : 400,
chartArea:{
top : 20,
width : chartWidth*0.6,
height : 360
},
bar : {
groupWidth : 25
},
hAxis : {
maxValue : 100,
viewWindow : {
max : 100
}
},
vAxis : {
textStyle : {
fontSize : 12
}
},
'backgroundColor' : '#f0f3f7',
legend:{
position : 'bottom'
},
pieSliceTextStyle : {
color : '#2c3520'
},
pieHole : 0.4,
colors :colorMap
};
var chart = new google.visualization.ChartWrapper({
chartType : 'PieChart',
dataTable : data,
options : options,
containerId : chartId_
});
chart.draw();
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/6983c701-b097-4cff-b701-0edd22a89c35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.