summaryrefslogtreecommitdiffstats
path: root/docs/tutorial_example_16.php
blob: 64d1e9f5dd90ca9e1e75a48871a5cecce9763053 (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
<?php

require_once 'tutorial_autoload.php';

$graph = new ezcGraphLineChart();
$graph->options->fillLines = 210;
$graph->title = 'Concurrent requests';
$graph->legend = false;

$graph->xAxis = new ezcGraphChartElementDateAxis();

// Add data
$graph->data['Machine 1'] = new ezcGraphArrayDataSet( array(
    '8:00' => 3241,
    '8:13' => 934,
    '8:24' => 1201,
    '8:27' => 1752,
    '8:51' => 123,
) );
$graph->data['Machine 2'] = new ezcGraphArrayDataSet( array(
    '8:05' => 623,
    '8:12' => 2103,
    '8:33' => 543,
    '8:43' => 2034,
    '8:59' => 3410,
) );

$graph->data['Machine 1']->symbol = ezcGraph::BULLET;
$graph->data['Machine 2']->symbol = ezcGraph::BULLET;

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

?>
OpenPOWER on IntegriCloud