I have a problem. This is my code.
google.setOnLoadCallback(drawVisualization);
function drawVisualization() {
// Some raw data (not necessarily accurate)
var data = google.visualization.arrayToDataTable([
['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua New Guinea', 'Rwanda', 'Average','persent'],
['2004/05', 16, 93, 52, 99, 40, 90,10],
['2005/06', 13, 11, 59, 12, 28, 60,40],
['2006/07', 15, 11, 58, 07, 37, 70,30],
['2007/08', 13, 11, 61, 98, 25, 50,50],
['2008/09', 13, 69, 69, 16, 66, 40,60]
]);
var options = {
title : 'Monthly Coffee Production by Country',
vAxis: {title: 'Cups'},
hAxis: {title: 'Month'},
seriesType: 'bars',
series: {
5: {type: 'BarChart' ,isStacked: 'true'} ,
6: {type: 'BarChart',isStacked: 'true'}
}
};
var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
My problem is that the 'Average' column which I agreed with that of 'persent'.
This is to show in the graph a "BarChart 'example of such data.
Fine 1 has: Average of 90 and 10. Then persent have I want these two convinen.
O If anyone knows how to autofill a value for 'BarChart' for example:
I have in my column 'Average' 20 I want you to auto fill in the chart and a color display 20 and other color display 80 that I need. I notice them automatically agrege. Thank you.
Mi problema es que la columna 'Average' quiero que se convine con la de 'persent'.
Esto es para poder mostrar en la grafica un 'BarChart' de esos datos ejemplo.
La fina 1 tiene: Average 90 y la de persent tiene 10. Entonces quiero que estas dos se convinen.
O si alquien sabe como autocompletar un valor para 'BarChart' por ejemplo:
tengo en mi columna 'Average' 20 quiero que se me auto complete en la grafica y muestre de un color el 20 y que de otro color muestre los 80 que me hacen falta. Nota los que me los agrege automaticamente. Gracias