Dipu R
Dipu R

Reputation: 575

Control Y Axis in google line graph

I have created a line graph using the google chart, I have inserted the image of the chart with this question. You may see that Y axis values are in created by 2, I would like to increase the Y Axis values by 1, is there any way to do so.

Image line http://imagebin.org/260899

Upvotes: 1

Views: 3071

Answers (1)

Pavel Slepiankou
Pavel Slepiankou

Reputation: 3585

I think that playing with parameter gridlines:{count} is right way to solve your problem, e.g.

                    hAxis: {
                             minValue: 0.00,
                             maxValue: 10.00
                     },
                     vAxis: {
                             minValue: 0.00,
                             maxValue:8.00,
                             baseline:4.00,
                             viewWindowMode:'explicit',
                             viewWindow:
                             {
                                max:8.00,
                                min:0.00
                             },
                             gridlines:{count:9}
                     }

Upvotes: 1

Related Questions