diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 08:33:19 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 08:33:19 +0000 |
commit | c61ea3b2139f5b388ebc8b99b891b0b7ea41524d (patch) | |
tree | adad71e494d5956a75ee1fd5c0a5ee7690ef16e5 /src/options | |
parent | 00c581fadaa2bdd638aa7f5cf0c97b3a26ba2bfe (diff) | |
download | zetacomponents-graph-c61ea3b2139f5b388ebc8b99b891b0b7ea41524d.zip zetacomponents-graph-c61ea3b2139f5b388ebc8b99b891b0b7ea41524d.tar.gz |
- Added axis container class
# First step to support multiple axis
Diffstat (limited to 'src/options')
-rw-r--r-- | src/options/line_chart.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/options/line_chart.php b/src/options/line_chart.php index f5f41f9..91466ac 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 ezcGraphAxisContainer $additionalAxis + * Contains additional axis besides the basic axis. * * @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['additionalAxis'] = new ezcGraphAxisContainer(); parent::__construct( $options ); } @@ -135,6 +138,14 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions $this->properties['highlightLines'] = $propertyValue; break; + case 'additionalAxis': + if ( ! $propertyValue instanceof ezcGraphAxisContainer ) + { + throw new ezcBaseValueException( $propertyName, $propertyValue, 'ezcGraphAxisContainer' ); + } + + $this->properties['additionalAxis'] = $propertyValue; + break; default: return parent::__set( $propertyName, $propertyValue ); } |