
my name is santosh kumar.
i faced the problem while creating combo charts for three different graphs . i want y-axis for each graph. i got one left y-axis and two right y-axes . two right y-axes are merged or overlapped .
i have written the following code .
function drawVisualization() {
// Some raw data (not necessarily accurate)
var data = google.visualization.arrayToDataTable([
['Month', 'Bolivia', 'Ecuador', 'Madagascar'],
['2004/05', 165, 938, 522],
['2005/06', 135, 1120, 599],
['2006/07', 157, 1167, 587],
['2007/08', 139, 1110, 615],
['2008/09', 136, 691, 629]
]);
var options = {
title : 'Monthly Coffee Production by Country',
vAxes : {
0:{minValue: 0,title: 'cups'},
1:{minValue: 0,title:'cups1',textStyle:{color: 'green'}},
2:{minValue: 0,title: 'cups2',textStyle:{color: 'red'}}
},
hAxis: {title: 'Month'},
seriesType: 'bars',
series: {0: {type: 'line',targetAxisIndex:0},1: {type: 'line',targetAxisIndex:1},
2: {type:'line',targetAxisIndex:2}
}
};
var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
chart.draw(data, options);
}