Slightly improvement to Pie and Donuts graphic. Now displays which data is shown.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 18 Nov 2012 09:52:44 +0000 (10:52 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 18 Nov 2012 09:52:44 +0000 (10:52 +0100)
reporting/includes/class.graphic.inc

index cc86dc604678604e02af644beff5c4cc02f68f71..fc41be8f4084f3f89171f916f12e58f725c392e4 100644 (file)
@@ -734,7 +734,8 @@ class graph
         {
             if (!empty($this->axis_x))
             {
-                $this->_imagestring($this->img, $this->size, ((($x1+$x2)/2) - (strlen($this->axis_x)*7/2)), $y, $this->axis_x, $this->color['title']);
+                $this->_imagestring($this->img, $this->size, ((($x1+$x2)/2) - (strlen($this->axis_x)*7/2)), $y, 
+                       $this->axis_x." (".$this->graphic_1.")", $this->color['title']);
                 $y += 25;
             }