SMOG: grafomm

SetMargin(0,0,0,0); // ampiezza margini px sx,dx,alto,basso
//$graph->title->Set(“PM10: Media Mobile ” );
//$graph->subtitle->Set(“al $data”);

$graph->SetAlphaBlending(); // per usare trasparenza
$graph->SetScale(“textlin”);

//$graph->yaxis->title->Set(“microg/m3”);

//$graph->xaxis->SetTickLabels($datix);

$graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->subtitle->SetFont(FF_FONT1,FS_BOLD);

$graph->xaxis->hide();
//$graph->yaxis->hide();
$graph->yaxis->scale->SetGrace(30);
//$graph->legend->SetFont(FF_FONT0);

//MEDIA
$p2 = new BarPlot($dati);
$p2->SetColor(“darkred”);
$p2->SetFillColor(“red”);
//$p2->SetLegend(“media (arcella e mandria)”);
$p2->SetWidth(0.6);
$p2->value->SetFormat(‘%2.1f’);
$p2->value->Show();
$p2->SetFillGradient(“red”,”lightgray”,GRAD_HOR);

$graph->Add($p2);
$graph->AddLine(new PlotLine(HORIZONTAL,$limite,”blue”,2));

//$graph->SetBackgroundImage(“includes/bgcigno1.png”,BGIMG_FILLFRAME);
//$graph->AddLine(new PlotLine(HORIZONTAL,40,”black”,2));

// salva il file
$graph->Stroke();

?>