summaryrefslogtreecommitdiffstats
path: root/docs/tutorial/tutorial_renderer_3d.php
blob: 0d2d178fe2f6fab1e054cdb9d8f55770b8e8dd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

require_once 'tutorial_autoload.php';

$graph = new ezcGraphPieChart();
$graph->title = 'Access statistics';

$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
    'Mozilla' => 19113,
    'Explorer' => 10917,
    'Opera' => 1464,
    'Safari' => 652,
    'Konqueror' => 474,
) );
$graph->data['Access statistics']->highlight['Opera'] = true;

$graph->renderer = new ezcGraphRenderer3d();

$graph->render( 400, 150, 'tutorial_renderer_3d.svg' );

?>
OpenPOWER on IntegriCloud