pChart 2.x forum
http://wiki.pchart.net/forum/

drawScatterScale Manual does not scale properly.
http://wiki.pchart.net/forum/viewtopic.php?f=1&t=2345
Page 1 of 1

Author:  Blauvster [ Tue Feb 07, 2012 9:52 pm ]
Post subject:  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 4666 times ]

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/