]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/simplegraph.php
bacula-web: Test page in default layout
[bacula/bacula] / gui / bacula-web / simplegraph.php
1 <?php
2 require_once 'external_packages/phplot/phplot.php';
3
4 $plot = new PHPlot(400, 300);
5
6 $data = array(
7   array('', 100, 100, 200, 100),
8   array('', 150, 100, 150, 100),
9 );
10 $plot->SetImageBorderType('plain');
11 $plot->SetDataType('text-data');
12 $plot->SetDataValues($data);
13 $plot->SetPlotType('pie');
14 //$plot->SetShading( '5' )
15
16 $plot->DrawGraph();
17
18 ?>