summaryrefslogtreecommitdiffstats
path: root/src/graph.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-06 12:22:35 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-06 12:22:35 +0000
commitc925b7cbd916a294e96d361585c396cd107a827e (patch)
tree6ceee293182e603f560fda96b6177f9ac0b20751 /src/graph.php
parenta1cf00931ec31b6c7c45ecd182b410c6e7cf4781 (diff)
downloadzetacomponents-graph-c925b7cbd916a294e96d361585c396cd107a827e.zip
zetacomponents-graph-c925b7cbd916a294e96d361585c396cd107a827e.tar.gz
- Added test for palettes
- Added basic implementatoin of palettes # Not used for automatic colorization yet
Diffstat (limited to 'src/graph.php')
-rw-r--r--src/graph.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/graph.php b/src/graph.php
index 03ee3fe..dd868cd 100644
--- a/src/graph.php
+++ b/src/graph.php
@@ -53,6 +53,19 @@ class ezcGraph
throw new ezcGraphUnknownChartTypeException($type);
}
}
+
+ static public function createPalette( $name )
+ {
+ $className = 'ezcGraphPalette' . $name;
+ if ( class_exists( $className ) )
+ {
+ return new $className();
+ }
+ else
+ {
+ throw new ezcGraphUnknownPaletteException( $name );
+ }
+ }
}
?>
OpenPOWER on IntegriCloud