scaling factors on horizontal bars - unexpected behavi
Status: Beta
Brought to you by:
ayashisunyday
The 'Factors' parameter of the drawScale() method seems to be broken when using 'Pos' => SCALE_POS_TOPBOTTOM.
I have successfully managed to display only 2 ordinate values on a vertical bar graph by setting half of the maximum ordinate value in the 'Factors' parameter like so :
$pImage->drawScale(
array(
"Mode" => SCALE_MODE_MANUAL,
"Factors" => array($maxOrdinateValue / 2),
"ManualScale" => array(
0 => array(
"Min" => 0,
"Max" => $maxOrdinateValue
)
),
"Pos" => SCALE_POS_LEFTRIGHT,
)
);
Doing so with 'Pos' => SCALE_POS_TOPBOTTOM exhibit unexpected behaviors, see attached file.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
unexpected behavior on second horizontal value : 205
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
working example on vertical bars
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
The attached file "scaling factors on vertical bars.jpeg" shows the "Factors" parameter works well on vertical bars.
"scaling factors on horizontal bars - unexpected behaviors.jpeg" shows what I'm having with the same parameters on a horizontal bar graph.
There should be only two values on the ordinate axis like in "scaling factors on vertical bars.jpeg"