<https://lh3.googleusercontent.com/-Pp3txsmoauQ/V0_hE-DQmzI/AAAAAAAAACk/xS7yYvKO-2024G2PXv5EIRuvijD9TsDewCLcB/s1600/tfd74geg-.jpg>
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);
}
--
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/ae4981fd-f163-4f48-a45f-d5c5f850c17b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.