diff options
Diffstat (limited to 'tests/custom_chart.php')
-rw-r--r-- | tests/custom_chart.php | 24 |
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, + ) ); + } +} + +?> |