The API allows up to 2 vertical axes (1 left, 1 right). Set the
series.[seriesIndex].targetAxisIndex to 0 to assign a series to the left
axis and to 1 to assign a series to the right axis. Use the
vAxes.[axisIndex] option to set the axis options (uses the same sub-options
as vAxis). Example:
var options = {
series: {
// assign the first series to the left axis
0: {
targetAxisIndex: 0
},
// assign the second series to the right axis
1: {
targetAxisIndex: 1
}
},
vAxes: {
// assign options for the left axis
0: {
title: 'Left Axis'
},
// assign options for the right axis
1: {
title: 'Right Axis'
}
}
}
On Thursday, July 26, 2012 5:33:11 PM UTC-4, mrishadali wrote:
>
> Hi,
> I'm using AreaCharts and LineCharts and I want to add multiple vertical
> axis for different values. Please see the attached image.
> Is there any way to do this kind of thing with viz api???
> Thanks in advance
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/ghetFgmuuY4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.