summaryrefslogtreecommitdiffstats
path: root/src/charts
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-12 16:29:14 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-12 16:29:14 +0000
commit4c71c431a983f0c1216981e2011e823d303848d7 (patch)
tree8fb31999ca1fb711e54c2eb8519f59116d9f05b6 /src/charts
parent3f1b5624719e557f8c4f7cb49f57d92fe3b37b4d (diff)
downloadzetacomponents-graph-4c71c431a983f0c1216981e2011e823d303848d7.zip
zetacomponents-graph-4c71c431a983f0c1216981e2011e823d303848d7.tar.gz
- Added tests and implementation for background images in charts
- Fixed bug with image sizes in gd driver
Diffstat (limited to 'src/charts')
-rw-r--r--src/charts/line.php2
-rw-r--r--src/charts/pie.php3
2 files changed, 4 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud