summaryrefslogtreecommitdiffstats
path: root/src/charts
diff options
context:
space:
mode:
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