summaryrefslogtreecommitdiffstats
path: root/src/interfaces/chart.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-07 08:17:12 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-07 08:17:12 +0000
commit0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 (patch)
tree54b87304e021327b7d00022a892f5cbcab00546c /src/interfaces/chart.php
parentb31a0055fe42a14356400ebe6d7a8e5bebb26240 (diff)
downloadzetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.zip
zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.tar.gz
- Removed factory methods and replaced them with direct class instantiation.
Diffstat (limited to 'src/interfaces/chart.php')
-rw-r--r--src/interfaces/chart.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/chart.php b/src/interfaces/chart.php
index 0bef62b..ddcc184 100644
--- a/src/interfaces/chart.php
+++ b/src/interfaces/chart.php
@@ -66,7 +66,7 @@ abstract class ezcGraphChart implements ArrayAccess
public function __construct( array $options = array() )
{
- $this->__set( 'palette', 'Tango' );
+ $this->__set( 'palette', new ezcGraphPaletteTango() );
// Add standard elements
$this->addElement( 'title', new ezcGraphChartElementText() );
@@ -144,7 +144,7 @@ abstract class ezcGraphChart implements ArrayAccess
}
else
{
- $this->palette = ezcGraph::createPalette( $propertyValue );
+ throw new ezcBaseValueException( "palette", $propertyValue, "instanceof ezcGraphPalette" );
}
$this->setFromPalette( $this->palette );
OpenPOWER on IntegriCloud