summaryrefslogtreecommitdiffstats
path: root/src/datasets/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/datasets/base.php')
-rw-r--r--src/datasets/base.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/datasets/base.php b/src/datasets/base.php
index 7cda08d..6bd8cf3 100644
--- a/src/datasets/base.php
+++ b/src/datasets/base.php
@@ -25,6 +25,8 @@ class ezcGraphDataset implements ArrayAccess, Iterator
protected $current;
+ protected $pallet;
+
public function __construct()
{
$this->label = new ezcGraphDatasetStringProperty( $this );
@@ -63,6 +65,11 @@ class ezcGraphDataset implements ArrayAccess, Iterator
case 'symbol':
$this->symbol->default = $propertyValue;
break;
+ case 'palette':
+ $this->palette = $propertyValue;
+ $this->color->default = $this->palette->dataSetColor;
+ $this->symbol->default = $this->palette->dataSetSymbol;
+ break;
}
}
OpenPOWER on IntegriCloud