Starting with the jfiddle example for a combo chart I modified the format to show 2 vertical axes
here...
But I cant get the axis title or max values to behave ...
google.setOnLoadCallback(drawVisualization);
function drawVisualization() {
// Some raw data (not necessarily accurate)
var data = google.visualization.arrayToDataTable([
['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua New Guinea', 'Rwanda', 'Percent'],
['2004/05', 165, 938, 522, 998, 450, 20],
['2005/06', 135, 1120, 599, 1268, 288, 30],
['2006/07', 157, 1167, 587, 807, 397, 55],
['2007/08', 139, 1110, 615, 968, 215, 68],
['2008/09', 136, 691, 629, 1026, 366, 45]
]);
var options = {
title : 'Monthly Coffee Production by Country',
//vAxis: {title: 'Cups'},
hAxis: {title: 'Month'},
seriesType: 'bars',
series: {5: {targetAxisIndex:1,type: 'line'}},
vAxes: [{0:{title: "cups", viewWindow:{ min:0.0, max: 1400.0}}},{1:{title: "Pct", viewWindow:{ min:0.0, max: 100.0}}}], };
var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
Any ideas?
Thanks,