View unanswered posts | View active topics It is currently Thu Mar 28, 2024 10:44 am



Reply to topic  [ 3 posts ] 
StackedBarChart: customize 
Author Message
New pChart user
New pChart user

Joined: Wed Dec 15, 2010 9:11 am
Posts: 2
Post StackedBarChart: customize
Hello!

Is there any posibility to customize my horizontal StackedBarChart:
1. Only integer numbers should be diplayed on a scale. (For example, my dataset contains only integer from 0 to 100).
2. I need, if its possible, my horizontal StackedBarChart starts from 0.


Probably I haven't precisely described my problem:
At a data set from 0 to 5 on a scale are displayed not only integers

Thanks
Serg


Attachments:
chart2.png
chart2.png [ 12.76 KiB | Viewed 7176 times ]
Wed Dec 15, 2010 9:19 am
Profile
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: StackedBarChart: customize
1. Try 'LabelSkip' => 5 parameter in pImage::drawScale function.
2. What about 'Mode' => SCALE_MODE_START0 parameter in same function?

_________________
Image


Wed Dec 15, 2010 6:50 pm
Profile WWW
New pChart user
New pChart user

Joined: Wed Dec 15, 2010 9:11 am
Posts: 2
Post Re: StackedBarChart: customize
Parameter SCALE_MODE_START0 works for the drawBarChart, but not for the drawStackedBarChart.
The parameter LabelSkip is applicable for axis Х, but not for an axis Y

The first image:
drawScale(array("Pos"=>SCALE_POS_TOPBOTTOM,"Mode"=>SCALE_MODE_ADDALL,"CycleBackground"=>true,"GridTicks"=>2,"GridR"=>39,"GridG"=>121,"GridB"=>170))

The second image:
drawScale(array("Pos"=>SCALE_POS_TOPBOTTOM,"Mode"=>SCALE_MODE_START0,"CycleBackground"=>true,"GridTicks"=>2,"GridR"=>39,"GridG"=>121,"GridB"=>170,"LabelSkip"=>2));


Serg


Attachments:
chart2-1.png
chart2-1.png [ 11.91 KiB | Viewed 7153 times ]
chart2-2.png
chart2-2.png [ 10.33 KiB | Viewed 7153 times ]
Thu Dec 16, 2010 10:55 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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