I'm running GVS on the latest Views 3 Dev version. I have a column chart that I want to restrict the vertical axes to the range 1-50 (inclusive). However, when I specify the V Axis Max, the chart doesn't change. Any suggestions?

Comments

btomic’s picture

Please try rc2 version. Can you send me page java script code generated by views style (especially json part 'options')

AABoyles’s picture

I am using the rc2 version. I think this is the code you're looking for:

chart.draw(data, {"width":"690","height":"410","title":"Chart","is3D":false,"chartArea":{"height":"100%","width":"100%"},"legend":"none","hAxis":{"titlePosition":"out","textPosition":"none","logScale":false},"vAxis":{"titlePosition":"out","textPosition":"in","maxValue":"51"}});}
                 google.setOnLoadCallback(drawChart);

Thanks

btomic’s picture

Everything looks OK... I'm bit confused... Maybe the problem is in Google Viz API...

vAxis property that specifies the highest vertical axis grid line. The actual grid line will be the greater of two values: the maxValue option value, or the highest data value, rounded up to the next higher grid mark.