Re: 2 Y Axes - Origins not aligned (image attached)

38 views
Skip to first unread message

asgallant

unread,
Jul 6, 2012, 11:08:21 AM7/6/12
to google-visua...@googlegroups.com
Try setting the min/maxValue options for the right vAxis:

vAxes{
    1{
        title'% ROI',
        textStyle{
            color'red'
        },
        format'#,##%',
        minValue-20,
        maxValue60
    }
}

If those don't work, use the viewWindow.min/max options for the right vAxis.
On Friday, July 6, 2012 9:33:08 AM UTC-4, Maha Istanbouly wrote:
I am currently building a Bar & Line chart using the ComboChart module and everything seems to be working just fine, except that the origins for the first and second Y axes are not aligned (see image attached). I have played with the container size and it doesnt really seem to be making much of a difference.

I have set up the secondary axis using the following script, and cannot figure out how to make the origins line up.

series:{3:{targetAxisIndex:1,type: "line" }}, vAxes:{1:{title:'% ROI',textStyle:{color: 'red'},format:'#,##%'}}

Am I missing something? I have only just started using the Google Visualisation API, so any assistance would be greatly appreciated.

Thanks in advance!

Maha Istanbouly

unread,
Jul 9, 2012, 5:31:49 AM7/9/12
to google-visua...@googlegroups.com
Perfect, the initial method works. Thank you!
Reply all
Reply to author
Forward
0 new messages