View unanswered posts | View active topics It is currently Sun Apr 28, 2024 9:21 pm



Reply to topic  [ 3 posts ] 
How to tilt values on x-axis of Pchart? 
Author Message
New pChart user
New pChart user

Joined: Tue Jun 19, 2012 6:30 pm
Posts: 3
Post How to tilt values on x-axis of Pchart?
Hi,

My x-axis on pachart has long set of values, is there anyway to tilt these values to some angle and increase font size?


Tue Jun 19, 2012 6:33 pm
Profile
Experienced pChart user
Experienced pChart user

Joined: Tue Aug 02, 2011 11:49 pm
Posts: 34
Post Re: How to tilt values on x-axis of Pchart?
have a closer look on drawScale function

use LabelRotation to rotate abscissa-labels
$myPicture->drawScale(array("LabelRotation"=>-45));
rotates labels 45° clockwise

to adjust font-size generally use
$myPicture->setFontProperties(array("FontName"=>"../[your_path]/pChart/fonts/arial.ttf","FontSize"=>16,"R"=>255,"G"=>0,"B"=>0));
before
$myPicture->drawScale

see setFontProperties
and setAxisColor
and setAbscissa


Tue Jun 19, 2012 8:50 pm
Profile
New pChart user
New pChart user

Joined: Tue Jun 19, 2012 6:30 pm
Posts: 3
Post Re: How to tilt values on x-axis of Pchart?
Awesome Thanks !!!


Tue Jun 19, 2012 8:59 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron