How to make Google charts larger in scale

I just started using google charts and want to use it in a small project I am working on, but I am facing a problem. The point is, I want the charts to be fairly large in static size and look good, but I am dynamically generating the charts using php. Now the problem is I can't get it to scale properly in width, but the height is fine.

Here's an example of a diagram I created:

chart

Parameters:

CHT = BVO & CHS = 400x400
CHD = t: 1,4,1
chxr = 2,0,4,1
VPS = 0,4
CHCO = 4d89f9
chxt = x, x, y, y
chxl = 0: | 3 | 7 | 26 | 1: | Correct + Answers | 3: | People

You can see how the chart fills 400 pixels of height but not width. I have searched and reviewed the api but I cannot figure it out.

+2


a source to share


1 answer


The default is not to scale the stripe width to fit the width of the chart. Adding chbh=a

will probably do what you want.



For more information on controlling line width and spacing, see the documentation .

+1


a source







All Articles