Re: Image_Graph
| From: | Jesper Veggerby Hansen | Date: | Sun, 10 Apr 2005 16:00:00 +0000 |
| Subject: | Re: Image_Graph | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18671@lists.php.net to get a copy of this message | ||
It has something to do with the way the axis calculates the intervals (IIRC). If you don't like/want the "suggested" maximum simply use the forceMaximum() on the axis, then you can supply any value you want.
regards
Jesper
hugo wrote:
Hi, I have a problem when using image_graph.The maximum in Y Axis is incorrect in regard of the data I have. I print_r the dataset : image_graph_dataset_trivial Object ( [_data] => Array ( [0] => Array ( [X] => nameTest [Y] => 4 [ID] => ) ) [_posX] => 0 [_minimumX] => nameTest [_maximumX] => 1 [_minimumY] => 4 [_maximumY] => 4 [_count] => 1 [_name] => ) As you can see, the maximum is 4 in Y. I draw a bar chart but the the bar goes to 4.5. Any idea about this gap ?