From 86d31a8b94e881ad6640bd8fd6c450f15fceb96a Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Tue, 4 Sep 2007 09:53:56 +0000 Subject: - Added dataset properties for axis assignements # More progress on the way to multiple axis support --- src/datasets/base.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/datasets/base.php') 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; -- cgit v1.1