From 4c71c431a983f0c1216981e2011e823d303848d7 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Mon, 12 Jun 2006 16:29:14 +0000 Subject: - Added tests and implementation for background images in charts - Fixed bug with image sizes in gd driver --- src/charts/line.php | 2 ++ src/charts/pie.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/charts') diff --git a/src/charts/line.php b/src/charts/line.php index a9509a9..c86ff29 100644 --- a/src/charts/line.php +++ b/src/charts/line.php @@ -162,8 +162,10 @@ class ezcGraphLineChart extends ezcGraphChart // Render border and background $boundings = $this->renderBorder( $boundings ); + $boundings = $this->options->backgroundImage->render( $this->renderer, $boundings ); $boundings = $this->renderBackground( $boundings ); + // Render subelements foreach ( $this->elements as $name => $element ) { // Special settings for special elements diff --git a/src/charts/pie.php b/src/charts/pie.php index e907b03..8645c08 100644 --- a/src/charts/pie.php +++ b/src/charts/pie.php @@ -200,15 +200,16 @@ class ezcGraphPieChart extends ezcGraphChart $this->options->width = $width; $this->options->height = $height; - // Render subelements $boundings = new ezcGraphBoundings(); $boundings->x1 = $this->options->width; $boundings->y1 = $this->options->height; // Render border and background $boundings = $this->renderBorder( $boundings ); + $boundings = $this->options->backgroundImage->render( $this->renderer, $boundings ); $boundings = $this->renderBackground( $boundings ); + // Render subelements foreach ( $this->elements as $name => $element ) { $this->driver->options->font = $element->font; -- cgit v1.1