From: Simon H. <sim...@us...> - 2010-11-29 15:40:13
|
Update of /cvsroot/stack/stack-dev/lib/database In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv30474/lib/database Modified Files: StackDBReporting.php Log Message: Ongoing quick reporting interface. Index: StackDBReporting.php =================================================================== RCS file: /cvsroot/stack/stack-dev/lib/database/StackDBReporting.php,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** StackDBReporting.php 29 Nov 2010 08:21:46 -0000 1.30 --- StackDBReporting.php 29 Nov 2010 15:40:05 -0000 1.31 *************** *** 1026,1030 **** public function gPieChart($values, $labels) { // pesky pipes conflict with gChart separators so am substituting them ! return '<img src="http://chart.apis.google.com/chart?cht=p&chs=500x100&chd=t:'.implode($values, ',').'&chdl='.str_replace('|', '~', implode($labels, '|')).'" />'; } } --- 1026,1033 ---- public function gPieChart($values, $labels) { // pesky pipes conflict with gChart separators so am substituting them ! foreach($labels as $key => $val) { ! $labels[$key] = str_replace('|', '→', $val); ! } ! return '<img src="http://chart.apis.google.com/chart?cht=p&chs=500x100&chd=t:'.implode($values, ',').'&chdl='.implode($labels, '|').'" />'; } } |