summaryrefslogtreecommitdiffstats
path: root/src/datasets
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-06 14:33:35 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-06 14:33:35 +0000
commit51bbe683d53acf187ebaca6af0e8dcf8dc2db6e7 (patch)
treec210178cbb44bd302e4dc2decc447468f2852961 /src/datasets
parentc925b7cbd916a294e96d361585c396cd107a827e (diff)
downloadzetacomponents-graph-51bbe683d53acf187ebaca6af0e8dcf8dc2db6e7.zip
zetacomponents-graph-51bbe683d53acf187ebaca6af0e8dcf8dc2db6e7.tar.gz
- Added outomatic colorization from pallets
Diffstat (limited to 'src/datasets')
-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