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

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

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

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

$graph->additionalAxis['border'] = $marker = new ezcGraphChartElementNumericAxis( );

$marker->position = ezcGraph::LEFT;
$marker->chartPosition = 1 / 3;
$marker->label = 'One million!';

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

?>
OpenPOWER on IntegriCloud