summaryrefslogtreecommitdiffstats
path: root/tests/custom_chart.php
blob: e7760bc046ce7a790fa7450d4fdad959db456cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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