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

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

$graph = new ezcGraphRadarChart();
$graph->title = 'Wikipedia articles';
$graph->options->fillLines = 220;

// Add data
foreach ( $wikidata as $language => $data )
{
    $graph->data[$language] = new ezcGraphArrayDataSet( $data );
    $graph->data[$language][] = reset( $data );
}

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

?>
OpenPOWER on IntegriCloud