3 include("../phplot.php");
5 //Include the code for manipulating data (scaling, moving averages, etc.)
6 include("../phplot_data.php");
9 $graph = new PHPlot_Data();
12 include("./data.php");
15 $graph->SetDataType("data-data");
17 //Load the data into the data array
18 $graph->SetDataValues($example_data);
19 $graph->DoMovingAverage(4,2,TRUE);
21 //Call Scaling Function (in phplot_data.php)
22 //$graph->DoScaleData(1,1);
24 //Draw a Legend at pixel location 100,100
25 $graph->SetLegendPixels(100,100,"");
27 //have no labels on Y axis
28 //$graph->SetYGridLabelType("none");