Hi all.
Moving on with my project, I now find myself with the following questions:
1. can you have more than 2 vAxes?
2. when I try to control my vAxes with the following javascript code, it
seems to automatically set the max vAxis on the right Axis. Do i need to
remove them first?
! function () {
var series = {};
for (var i = 1; i < columns; i++) {
var maxRange = data.getColumnRange(i);
if (maxRange.max > 1000) {
series[i] = {
targetAxisIndex: 0
};
} else {
if (maxRange.max < 20) {
series[i] = {
targetAxisIndex: 2
};
} else {
series[i] = {
targetAxisIndex: 1
};
}
}
}
alert(JSON.stringify(series, null, 4));
wrapper.setOption('vAxes', [{
maxValue: 4000
}, {
maxValue: 160
}, {
maxValue: 30, textPosition: 'in'
}]);
wrapper.setOption('series', series);
}();
--
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.
For more options, visit https://groups.google.com/groups/opt_out.