From 6983c27585a8ee210e3f49b3b7421ed8f0744792 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 18 Nov 2012 10:52:44 +0100 Subject: [PATCH] Slightly improvement to Pie and Donuts graphic. Now displays which data is shown. --- reporting/includes/class.graphic.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reporting/includes/class.graphic.inc b/reporting/includes/class.graphic.inc index cc86dc60..fc41be8f 100644 --- a/reporting/includes/class.graphic.inc +++ b/reporting/includes/class.graphic.inc @@ -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; } -- 2.30.2