cvs: pearweb /public_html package-stats-graph.php
| From: | Tal Peer | Date: | Wed, 10 Jul 2002 06:43:28 +0000 |
| Subject: | cvs: pearweb /public_html package-stats-graph.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5002@lists.php.net to get a copy of this message | ||
tal Wed Jul 10 02:43:28 2002 EDT
Modified files:
/pearweb/public_html package-stats-graph.php
Log:
* Add the values to the bars in the graph.
Index: pearweb/public_html/package-stats-graph.php
diff -u pearweb/public_html/package-stats-graph.php:1.5
pearweb/public_html/package-stats-graph.php:1.6
--- pearweb/public_html/package-stats-graph.php:1.5 Sun Jun 9 18:48:59 2002
+++ pearweb/public_html/package-stats-graph.php Wed Jul 10 02:43:28 2002
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Richard Heyes <richard@php.net> |
+----------------------------------------------------------------------+
- $Id: package-stats-graph.php,v 1.5 2002/06/09 22:48:59 richard Exp $
+ $Id: package-stats-graph.php,v 1.6 2002/07/10 06:43:28 tal Exp $
*/
/**
@@ -84,12 +84,14 @@
}
}
- // Create the bar pot
+ // Create the bar plot
$bplots[$rid] = new BarPlot(array_reverse(array_values($y_axis)));
$bplots[$rid]->SetWidth(0.6);
$bplots[$rid]->SetFillGradient("white", $colour, GRAD_HOR);
//$bplot->setFillColor("#339900");
$bplots[$rid]->SetColor("black");
+ $bplots[$rid]->SetValueFormat("%d");
+ $bplots[$rid]->ShowValue();`
}
$x_axis = array_reverse(array_values($x_axis));