diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-06 14:33:35 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-06 14:33:35 +0000 |
commit | 51bbe683d53acf187ebaca6af0e8dcf8dc2db6e7 (patch) | |
tree | c210178cbb44bd302e4dc2decc447468f2852961 /src/datasets | |
parent | c925b7cbd916a294e96d361585c396cd107a827e (diff) | |
download | zetacomponents-graph-51bbe683d53acf187ebaca6af0e8dcf8dc2db6e7.zip zetacomponents-graph-51bbe683d53acf187ebaca6af0e8dcf8dc2db6e7.tar.gz |
- Added outomatic colorization from pallets
Diffstat (limited to 'src/datasets')
-rw-r--r-- | src/datasets/base.php | 7 |
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; } } |