cvs: pear /Image_Graph/Graph Constants.php /Image_Graph/Graph/Marker Value.php /Image_Graph/docs ChangeLog

From: Date: Tue, 24 May 2005 17:26:23 +0000
Subject: cvs: pear /Image_Graph/Graph Constants.php /Image_Graph/Graph/Marker Value.php /Image_Graph/docs ChangeLog
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32107@lists.php.net to get a copy of this message
nosey Tue May 24 13:26:23 2005 EDT Modified files: /pear/Image_Graph/Graph/Marker Value.php /pear/Image_Graph/Graph Constants.php /pear/Image_Graph/docs ChangeLog Log: Fixed bug #4417 "Cannot use point ID as marker value" http://cvs.php.net/diff.php/pear/Image_Graph/Graph/Marker/Value.php?r1=1.6&r2=1.7&ty=u Index: pear/Image_Graph/Graph/Marker/Value.php diff -u pear/Image_Graph/Graph/Marker/Value.php:1.6 pear/Image_Graph/Graph/Marker/Value.php:1.7 --- pear/Image_Graph/Graph/Marker/Value.php:1.6 Mon Feb 21 15:49:50 2005 +++ pear/Image_Graph/Graph/Marker/Value.php Tue May 24 13:26:22 2005 @@ -24,7 +24,7 @@ * @author Jesper Veggerby <pear.nosey@veggerby.dk> * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: Value.php,v 1.6 2005/02/21 20:49:50 nosey Exp $ + * @version CVS: $Id: Value.php,v 1.7 2005/05/24 17:26:22 nosey Exp $ * @link http://pear.php.net/package/Image_Graph */ @@ -144,7 +144,12 @@ break; case IMAGE_GRAPH_PCT_Y_TOTAL: - $value = 100*$values['Y'] / $values['SUM_Y']; + if (isset($values['SUM_Y'])) { + $value = 100 * $values['Y'] / $values['SUM_Y']; + } + else { + $value = 0; + } break; case IMAGE_GRAPH_POINT_ID: http://cvs.php.net/diff.php/pear/Image_Graph/Graph/Constants.php?r1=1.5&r2=1.6&ty=u Index: pear/Image_Graph/Graph/Constants.php diff -u pear/Image_Graph/Graph/Constants.php:1.5 pear/Image_Graph/Graph/Constants.php:1.6 --- pear/Image_Graph/Graph/Constants.php:1.5 Mon Feb 21 15:49:46 2005 +++ pear/Image_Graph/Graph/Constants.php Tue May 24 13:26:23 2005 @@ -23,7 +23,7 @@ * @author Jesper Veggerby <pear.nosey@veggerby.dk> * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: Constants.php,v 1.5 2005/02/21 20:49:46 nosey Exp $ + * @version CVS: $Id: Constants.php,v 1.6 2005/05/24 17:26:23 nosey Exp $ * @link http://pear.php.net/package/Image_Graph */ @@ -157,7 +157,7 @@ /** * Defines a ID value should be used */ -define('IMAGE_GRAPH_POINT_ID', 6); +define('IMAGE_GRAPH_POINT_ID', 7); /** * Align text left http://cvs.php.net/diff.php/pear/Image_Graph/docs/ChangeLog?r1=1.24&r2=1.25&ty=u Index: pear/Image_Graph/docs/ChangeLog diff -u pear/Image_Graph/docs/ChangeLog:1.24 pear/Image_Graph/docs/ChangeLog:1.25 --- pear/Image_Graph/docs/ChangeLog:1.24 Tue May 17 17:15:30 2005 +++ pear/Image_Graph/docs/ChangeLog Tue May 24 13:26:23 2005 @@ -1,7 +1,7 @@ ************************* Image_Graph - Changelog ************************* -Version 0.4.0-alpha [2005-XXX-XX] - Jesper Veggerby <pear.nosey@veggerby.dk> +Version 0.3.1-alpha [2005-XXX-XX] - Jesper Veggerby <pear.nosey@veggerby.dk> * Added support for antialiasing images when using GD (both using native GD method and Image_Graph own implementation) * Added possibility to specify horizontal title alignment (left, right or center) * Fixed an "off-by-one" problem with secondary axis @@ -9,6 +9,7 @@ * Removed some memory leaks mentioned as described in bug #3958 "Memory leaks in Image_Graph 0.3.0-alpha" * Fixed bug #4113 "Image_Graph_Driver_GD::pieSlice() warnings" * Fixed bug #4333 "Legend division by zero error on PieChart" + * Fixed bug #4417 "Cannot use point ID as marker value" Version 0.3.0-alpha [2005-Feb-25] - Jesper Veggerby <pear.nosey@veggerby.dk> * Added possibility to use arrays of the type $data[$id] = array('x' => $x, 'y' => $y) for easy data addition to a dataset

« previous php.pear.cvs (#32107) next »