]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/external_packages/phplot/examples/example6.php
405943b2973dfeaded094010c73810e8449d7555
[bacula/bacula] / gui / bacula-web / external_packages / phplot / examples / example6.php
1 <?php
2 include("../phplot.php");
3 $graph = new PHPlot(600,200);
4 include("./data_date.php");
5 $graph->SetDataType("data-data");  //Must be called before SetDataValues
6
7 $graph->SetXGridLabelType("time");
8 $graph->SetXDataLabelAngle(90);
9 $graph->SetXLabel("");
10 $graph->SetYLabel("Volume");
11 $graph->SetVertTickIncrement(30);
12 $graph->SetXTimeFormat("%b %y");
13 $graph->SetDataValues($example_data);
14 $graph->SetHorizTickIncrement(2679000);
15 $graph->SetPlotType("thinbarline");
16 $graph->SetDrawXDataLabels(false);
17 $graph->SetPlotAreaWorld(883634400,0,915095000,90);
18 $graph->DrawGraph();
19 ?>