summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-09-06 12:45:09 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-09-06 12:45:09 +0000
commita3a7f0b264223ec011b46fd4e0ce2674af7e0087 (patch)
tree345bb747e3c8311795c154f9849bbc30aca8ee0b /src/options
parentc87432c04b6b68d8a1e210947acb3f260f013707 (diff)
downloadzetacomponents-graph-a3a7f0b264223ec011b46fd4e0ce2674af7e0087.zip
zetacomponents-graph-a3a7f0b264223ec011b46fd4e0ce2674af7e0087.tar.gz
- Implemented feature #10978: Add support for stacked bar charts
Diffstat (limited to 'src/options')
-rw-r--r--src/options/line_chart.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/options/line_chart.php b/src/options/line_chart.php
index f5f41f9..68b4c09 100644
--- a/src/options/line_chart.php
+++ b/src/options/line_chart.php
@@ -41,6 +41,8 @@
* @property bool $highlightLines
* If true, it adds lines to highlight the values position on the
* axis.
+ * @property true $stackBars
+ * Stack bars
*
* @version //autogentag//
* @package Graph
@@ -63,6 +65,7 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions
$this->properties['highlightFontCloned'] = false;
$this->properties['highlightSize'] = 14;
$this->properties['highlightLines'] = false;
+ $this->properties['stackBars'] = false;
parent::__construct( $options );
}
@@ -135,6 +138,14 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions
$this->properties['highlightLines'] = $propertyValue;
break;
+ case 'stackBars':
+ if ( !is_bool( $propertyValue ) )
+ {
+ throw new ezcBaseValueException( $propertyName, $propertyValue, 'bool' );
+ }
+
+ $this->properties['stackBars'] = $propertyValue;
+ break;
default:
return parent::__set( $propertyName, $propertyValue );
}
OpenPOWER on IntegriCloud