|
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
StackedBarChart: customize
Author |
Message |
serg2070
New pChart user
Joined: Wed Dec 15, 2010 9:11 am Posts: 2
|
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 [ 12.76 KiB | Viewed 8994 times ]
|
Wed Dec 15, 2010 9:19 am |
|
|
mice32
Experienced pChart user
Joined: Thu Dec 02, 2010 3:03 pm Posts: 36 Location: Somerville, MA, USA
|
Re: StackedBarChart: customize
1. Try 'LabelSkip' => 5 parameter in pImage::drawScale function. 2. What about 'Mode' => SCALE_MODE_START0 parameter in same function?
_________________
|
Wed Dec 15, 2010 6:50 pm |
|
|
serg2070
New pChart user
Joined: Wed Dec 15, 2010 9:11 am Posts: 2
|
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 [ 11.91 KiB | Viewed 8971 times ]
chart2-2.png [ 10.33 KiB | Viewed 8971 times ]
|
Thu Dec 16, 2010 10:55 am |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 15 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
|
|
|
|