PHP pChart x-axis Shortcut

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 on one chart.

+3
source share
1 answer

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

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

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

+14
source

Source: https://habr.com/ru/post/1795292/


All Articles