diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-08-07 08:17:12 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-08-07 08:17:12 +0000 |
commit | 0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 (patch) | |
tree | 54b87304e021327b7d00022a892f5cbcab00546c /design | |
parent | b31a0055fe42a14356400ebe6d7a8e5bebb26240 (diff) | |
download | zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.zip zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.tar.gz |
- Removed factory methods and replaced them with direct class instantiation.
Diffstat (limited to 'design')
-rw-r--r-- | design/design.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/design/design.txt b/design/design.txt index a4e0b05..267750c 100644 --- a/design/design.txt +++ b/design/design.txt @@ -96,7 +96,7 @@ The following example shows how to use the class: :: <?php - $pie = ezcGraph::create( 'Pie' ); + $pie = new ezcGraphPieChart(); $pie->options->backgroundImage = 'background.png'; $pie->options->border->color = '#ff0000'; $pie->title = 'Apple Pie'; @@ -106,7 +106,7 @@ The following example shows how to use the class: :: $pie['humanoids']->highlight( 'monkey' ); // chart type dependent - $line = ezcGraph::create( 'Line' ); + $line = new ezcGraphLineChart(); $line->options->backgroundColor = 'pink'; $line['income'] = array( 1990 => 5, 5.1, 5.4, 5.3, 6.9 ); |