pChart 2.x forum
http://wiki.pchart.net/forum/

Axis padding
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=259
Page 1 of 1

Author:  richc1977 [ Fri Feb 18, 2011 7:13 pm ]
Post subject:  Axis padding

On the different axis the labels are a bit close together, especially around zero. If we could set padding around each label, like padding or margin in css?

Attachments:
chart.max.service.php.png
chart.max.service.php.png [ 20.91 KiB | Viewed 5620 times ]

Author:  jean-damien [ Wed Mar 23, 2011 12:03 pm ]
Post subject:  Re: Axis padding

Hi,

You can try something like this :

Code:
$scaleSettings = array("XMargin"=>10,"YMargin"=>10,"Floating"=>TRUE,"GridR"=>200,"GridG"=>200,"GridB"=>200,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
$myPicture->drawScale($scaleSettings);


Kind regards,
JD.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/