View unanswered posts | View active topics It is currently Thu Mar 28, 2024 5:31 pm



Reply to topic  [ 1 post ] 
drawScatterScale Manual does not scale properly. 
Author Message
New pChart user
New pChart user

Joined: Tue Feb 07, 2012 8:48 pm
Posts: 1
 drawScatterScale Manual does not scale properly.
I am having a problem with the manual scale. Defining the parameters for the axis' boundaries does not seem to be applying. The chart instead picks a rounded number to begin and end on.

This would not be an issue, but I am also using the defined boundaries for a custom CSS image map that utilizes JS to fill some fields to define a new plot.

The scale is defined in the code example:
Code:
$myScatter->drawScatterScale(array("XLabelsRotation"=>45, "GridR"=>128, "GridG"=>128, "GridB"=>128,"Mode"=>SCALE_MODE_MANUAL, "ManualScale"=>$AxisBoundaries))


$AxisBoundaries is an array generated automatically to provide the actual min and max for the series. In the case of the image included in the post the min and max for the X and Y axis are:
X: 1327067856.5556 -> 1328648912.9048
Y: 88.87962962963 -> 243.00925925926

So my question is how does the pchart determine what to round to? I could then apply this to the image map.


Attachments:
File comment: Rendered image with image map.
scaling_issue.png
scaling_issue.png [ 119.65 KiB | Viewed 4527 times ]
Tue Feb 07, 2012 9:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

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