I am creating a multiple line chart with Google Chart API where I want to
use 2 Y axis such as -> [![enter image description here][1]][1], but with
one axis set to max 24000 for my 6 countries, and the second set to 90000
for the 'Total World' column.
The problem is that my set of options never returns the 'Total World' in
the second y axis and the other 6 countries in the first y axis, no matter
how I arrange the option 'targetAxisIndex':
var tot = 95000;
var min = 0, var max = 24000;
....
var options = {
title: 'Top Consuming Nations - Thousand barrels daily',
hAxis: {title: 'Year'},
width: 1050, height : 400,
vAxes: [
{title: 'Top Countries', titleTextStyle: {color: '#FF0000'
}, maxValue: max}, // Left axis maxValue: 60000
{title: 'Total World', titleTextStyle: {color: '#FF0000'},
maxValue: tot} // Right
],
series:[
{targetAxisIndex:1},
{targetAxisIndex:0}
],
legend: { position: 'top', alignment: 'start' }
};
here is the complete code:
http://plnkr.co/edit/u5xXExdkTTYU8fHxWzHB?p=preview
[1]: http://i.stack.imgur.com/rdqtY.png
--
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 http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/561415e4-f12c-4b01-b7c3-94064fb5c954%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.