summaryrefslogtreecommitdiffstats
path: root/docs/tutorial_example_10.php
blob: 540ec37eb3050b1f1859d88bc7d63616b6cdc2d0 (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
25
26
<?php

require_once 'tutorial_autoload.php';

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

$graph->options->font->name = 'serif';

$graph->title->background = '#EEEEEC';
$graph->title->font->name = 'sans-serif';

$graph->options->font->maxFontSize = 8;

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

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

?>
OpenPOWER on IntegriCloud