2

I have made a horizontal bar graph using jpgraph, and rotated it 90 degrees. But the label on x-axis is being cut off, i.e not shown whole label.
I have set $graph->theme = null;
and also set margin. But nothing changes.

Please suggest me way to handle it.
For example I have a label Business management & Administration on x-axis.

Steven
  • 1,365
  • 2
  • 13
  • 28
Dhirender
  • 604
  • 8
  • 23
  • How did you get your barchart to display horizontal? I followed documentation but `$graph->Set90AndMargin()` doesn't work... – nclsvh May 18 '18 at 07:29

1 Answers1

1

Try adding a new line to the labels so it is shorter and adjusting the margins via $graph->Set90AndMargin(a,b,c,d); The margins can be a little confusing, the top margin (ie c) also rotates with the graph so you are now adjusting the right margin, if that makes sense.

Bollis
  • 385
  • 1
  • 11