0

I am using PHP SVGGraph to build a graph. I have a graph that currently looks like this:

enter image description here

What I would like to do is keep the width of the grid the same but the bars should not be so wide. I am not able to find anything in the docs on whether this can be done.

Is it possible to do this?

iqstatic
  • 2,322
  • 3
  • 21
  • 39
Lawrence Cooke
  • 1,567
  • 3
  • 26
  • 52

1 Answers1

1

According to documentation you adjust the width of the bars using the options parameter when creating the instance:

// Notice the 3 argument
$graph = new SVGGraph(640, 480,array("bar_width"=>'100'));

Referenced from the options page (near the bottom):

http://www.goat1000.com/svggraph-bar.php#general-options

Rasclatt
  • 12,498
  • 3
  • 25
  • 33