summaryrefslogtreecommitdiffstats
path: root/src/interfaces/chart.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/chart.php')
-rw-r--r--src/interfaces/chart.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/interfaces/chart.php b/src/interfaces/chart.php
index 1e6492f..4b76d5a 100644
--- a/src/interfaces/chart.php
+++ b/src/interfaces/chart.php
@@ -80,6 +80,10 @@ abstract class ezcGraphChart
$this->elements['title']->position = ezcGraph::TOP;
$this->renderElement['title'] = false;
+ $this->addElement( 'subtitle', new ezcGraphChartElementText() );
+ $this->elements['subtitle']->position = ezcGraph::TOP;
+ $this->renderElement['subtitle'] = false;
+
$this->addElement( 'legend', new ezcGraphChartElementLegend() );
$this->elements['legend']->position = ezcGraph::LEFT;
@@ -128,8 +132,9 @@ abstract class ezcGraphChart
{
switch ( $propertyName ) {
case 'title':
- $this->elements['title']->title = $propertyValue;
- $this->renderElement['title'] = true;
+ case 'subtitle':
+ $this->elements[$propertyName]->title = $propertyValue;
+ $this->renderElement[$propertyName] = true;
break;
case 'legend':
if ( !is_bool( $propertyValue ) )
OpenPOWER on IntegriCloud