summaryrefslogtreecommitdiffstats
path: root/docs/tutorial_example_18.php
blob: 104c107e5ec285692e0f1d314def1356b68cc383 (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
27
28
29
30
31
32
33
34
35
<?php

require_once 'tutorial_autoload.php';
$wikidata = include 'tutorial_wikipedia_data.php';

$graph = new ezcGraphBarChart();
$graph->title = 'Wikipedia articles';

// Add data
foreach ( $wikidata as $language => $data )
{
    $graph->data[$language] = new ezcGraphArrayDataSet( $data );
}
$graph->data['German']->displayType = ezcGraph::LINE;
$graph->data['German']->highlight = true;
$graph->data['German']->highlight['Mar 2006'] = false;

$graph->options->fillLines = 210;

$graph->options->highlightSize = 12;

$graph->options->highlightFont->background = '#EEEEEC88';
$graph->options->highlightFont->border = '#000000';
$graph->options->highlightFont->borderWidth = 1;

// $graph->renderer = new ezcGraphRenderer2d();

$graph->renderer->options->barMargin = .2;
$graph->renderer->options->barPadding = .2;

$graph->renderer->options->dataBorder = 0;

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

?>
OpenPOWER on IntegriCloud