diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 09:53:56 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 09:53:56 +0000 |
commit | 86d31a8b94e881ad6640bd8fd6c450f15fceb96a (patch) | |
tree | 1a84067fa49fb28bddb1d024aec329286f4b0543 /src/datasets/base.php | |
parent | 6e5582742fb0e67b71e94e0a9bedc91723c3ef3e (diff) | |
download | zetacomponents-graph-86d31a8b94e881ad6640bd8fd6c450f15fceb96a.zip zetacomponents-graph-86d31a8b94e881ad6640bd8fd6c450f15fceb96a.tar.gz |
- Added dataset properties for axis assignements
# More progress on the way to multiple axis support
Diffstat (limited to 'src/datasets/base.php')
-rw-r--r-- | src/datasets/base.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/datasets/base.php b/src/datasets/base.php index 3a3ac80..37337f5 100644 --- a/src/datasets/base.php +++ b/src/datasets/base.php @@ -23,6 +23,10 @@ * Display type of chart data * @property string $url * URL associated with datapoint + * @property ezcGraphChartElementAxis $xAxis + * Associate dataset with a different X axis then the default one + * @property ezcGraphChartElementAxis $yAxis + * Associate dataset with a different Y axis then the default one * * @version //autogentag// * @package Graph @@ -75,6 +79,9 @@ abstract class ezcGraphDataSet implements ArrayAccess, Iterator, Countable $this->properties['displayType'] = new ezcGraphDataSetIntProperty( $this ); $this->properties['url'] = new ezcGraphDataSetStringProperty( $this ); + $this->properties['xAxis'] = new ezcGraphDataSetAxisProperty( $this ); + $this->properties['yAxis'] = new ezcGraphDataSetAxisProperty( $this ); + $this->properties['highlight']->default = false; } @@ -102,6 +109,8 @@ abstract class ezcGraphDataSet implements ArrayAccess, Iterator, Countable case 'symbol': case 'highlight': case 'displayType': + case 'xAxis': + case 'yAxis': $this->properties[$propertyName]->default = $propertyValue; break; |