X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fclass.graphic.inc;h=31f0105fdb7276d4f40722d72e7270d57b65d0d2;hb=358a85b3bde83fef2919a30347ad5b6b45a44282;hp=cc86dc604678604e02af644beff5c4cc02f68f71;hpb=5c9265bed9bc5c3e9e2f324c77febe15994b79e9;p=fa-stable.git diff --git a/reporting/includes/class.graphic.inc b/reporting/includes/class.graphic.inc index cc86dc60..31f0105f 100644 --- a/reporting/includes/class.graphic.inc +++ b/reporting/includes/class.graphic.inc @@ -607,7 +607,7 @@ class graph $this->graphic_area_width = ($this->space_between_dots * $this->total_parameters) - 10; $this->graphic_area_x1 += $this->string_width(($this->higher_value_str), $this->size); $this->width += $this->graphic_area_x1 + 20; - $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 10); + $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 30); break; // Lines @@ -616,7 +616,7 @@ class graph $this->graphic_area_width = ($this->space_between_dots * $this->total_parameters) - 10; $this->graphic_area_x1 += $this->string_width(($this->higher_value_str), $this->size); $this->width += $this->graphic_area_x1 + 20; - $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 10); + $this->width += ($this->legend_exists == true) ? 40 : ((7 * strlen($this->axis_x)) + 30); break; // Pie @@ -634,6 +634,7 @@ class graph break; } + $this->graphic_area_width = max($this->graphic_area_width, $this->string_width($this->title, $this->size)); $this->width += $this->graphic_area_width; $this->width += $this->legend_box_width; @@ -734,7 +735,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; }