When comment the series and vAxes to make my right y-axis appear, the
legend on the right will be removed. Theres is another workaround?
Im calling my chart like this:
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
But when I set up the options like this in my function drawChart:
var options = {
series: {
0: { axis: 'deep'},
8: { axis: 'ppm' ,targetAxisIndex: 1, color:'none' }
},
vAxes:{
0: { title:'Deep(m)' },
1: { title:'VOC(ppm)' }
},
enableInteractivity: false,
isStacked: true,
legend: { position: 'right' },
};
var chart = new
google.visualization.ColumnChart(document.getElementById('chart'));
chart.draw(data, options);
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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 http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/d/optout.