From: <sy...@us...> - 2007-08-02 22:19:26
|
Update of /cvsroot/tikiwiki/tiki/lib/logs In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5984/lib/logs Modified Files: logslib.php Log Message: [FIX]some minor display tuning Index: logslib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/logs/logslib.php,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- logslib.php 31 Jul 2007 14:28:53 -0000 1.50 +++ logslib.php 2 Aug 2007 22:19:26 -0000 1.51 @@ -899,8 +899,9 @@ $query = 'delete * from `adodb_logsql`'; $this->query($query, array()); } - function graph_to_jpgraph(&$jpgraph, $series, $accumulated = false) { + function graph_to_jpgraph(&$jpgraph, $series, $accumulated = false, $color='whitesmoke', $colorLegend='white') { $jpgraph->SetScale('textlin'); + $jpgraph->setMarginColor($color); $jpgraph->xaxis->SetTickLabels($series['x']); $plot = array(); for ($i = 0; isset($series["y$i"]); ++$i) { @@ -914,6 +915,7 @@ $gbplot = new GroupBarPlot($plot); } //$jpgraph ->legend->Pos( 0.5,0.5,"right" ,"center"); + $jpgraph->legend->SetFillColor($colorLegend); $jpgraph->Add( $gbplot); } |