summaryrefslogtreecommitdiffstats
path: root/tests/custom_chart.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-06-14 09:49:53 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-06-14 09:49:53 +0000
commita592d91b0a69c421d842c9315ad73adedb521421 (patch)
treea4699499d1bd525c39e60687c0298e2e308a3d77 /tests/custom_chart.php
parent96e75636cbb1dbecc21172496ae6cbfa359bcf31 (diff)
downloadzetacomponents-graph-a592d91b0a69c421d842c9315ad73adedb521421.zip
zetacomponents-graph-a592d91b0a69c421d842c9315ad73adedb521421.tar.gz
- Fixed issue #10828: PHP error when overwriting renderer in extended
ezGraphPieChart
Diffstat (limited to 'tests/custom_chart.php')
-rw-r--r--tests/custom_chart.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/custom_chart.php b/tests/custom_chart.php
new file mode 100644
index 0000000..e7760bc
--- /dev/null
+++ b/tests/custom_chart.php
@@ -0,0 +1,24 @@
+<?php
+
+class ezcCustomTestChart extends ezcGraphPieChart
+{
+ public function __construct( array $options = array() )
+ {
+ parent::__construct( $options );
+
+ $this->driver = new ezcGraphSvgDriver();
+ $this->renderer = new ezcGraphRenderer3d();
+
+ $this->palette = new ezcGraphPaletteEzBlue();
+
+ $this->title = 'Test chart';
+
+ $this->data['testdata'] = new ezcGraphArrayDataSet( array(
+ 'foo' => 123,
+ 'bar' => 43,
+ 'blubb' => 453,
+ ) );
+ }
+}
+
+?>
OpenPOWER on IntegriCloud