PHP pChart x-axis Label Angle

8.2k Views Asked by At

Does anyone know how to change the angle of the x-axis labels in pChart? I need to slant them so a longer timeframe can be displayed in a single graph.

1

There are 1 best solutions below

1
On BEST ANSWER

For pChart 2, it can be configured with the 'LabelRotation' format option of the drawScale method:

$image->drawScale( array( ... , 'LabelRotation'=>10  , ... ) );

Have look at the documentation of the drawScale: http://wiki.pchart.net/doc.doc.draw.scale.html