SetScale('intlin',0,800); $graph->SetYScale(0,'int',0,25); $graph->SetYScale(1,'int',0,85); $theme_class=new UniversalTheme; $graph->img->SetMargin(70,100,30,100); // Sets the margin. L, R, T, B $graph->SetMarginColor('whiite'); $graph->title->Set('Boiler Steam Values'); $graph->subtitle->Set('(15 Minute Intervals)'); $graph->xaxis->title->Set(1); $graph->yaxis->title->Set('%'); $graph->SetBox(false); //$graph->footer->right->Set('Timer (ms): '); //$graph->footer->SetTimer($timer); //$graph->legend->SetPos($aX,$aY,$aHAlign='right',$aVAlign='top'); $graph->img->SetAntiAliasing(); $graph->yaxis->HideZeroLabel(); $graph->yaxis->HideLine(false); $graph->yaxis->HideTicks(false,false); $graph->yaxis->title->Set(0); $graph->yaxis->SetTitleMargin(50); $graph->xgrid->Show(true,true); $graph->xgrid->SetLineStyle("solid"); $graph->xaxis->SetTickLabels($datay); //$graph->xaxis->SetTickDensity(TICKD_DENSE); $graph->xaxis->SetLabelAngle(65); $graph->xgrid->SetColor('#E2E2E2'); // Create line 1 $p1=new LinePlot($datax1); $p1->SetCSIMTargets($targ1,$alts1); $p1->mark->SetType(MARK_CIRCLE); $graph->AddY(0,$p1); $p1->SetColor("#6495ED"); $p1->SetLegend('Exhaust Pressure - PSI'); $graph->ynaxis[0]->SetColor('#6495ED'); // Create line 2 $p2=new LinePlot($datax2); $p2->SetCSIMTargets($targ2,$alts2); $p2->mark->SetType(MARK_CIRCLE); $graph->Add($p2); $p2->SetColor("#B22222"); $p2->SetLegend('Total Steam Flow - KPPH'); // Create line 3 $p3=new LinePlot($datax3); $p3->SetCSIMTargets($targ3,$alts3); $p3->mark->SetType(MARK_CIRCLE); $graph->Add($p3); $p3->SetColor("orange"); $p3->SetLegend('Live Steam Pressure - PSI'); // Create line 4 $p4=new LinePlot($datax4); $p4->SetCSIMTargets($targ4,$alts4); $p4->mark->SetType(MARK_CIRCLE); $graph->AddY(1,$p4); $p4->SetColor("darkgreen"); $p4->SetLegend('Exhaust Steam Flow 1 - KPPH'); // Create line 5 $p5=new LinePlot($datax5); $p5->SetCSIMTargets($targ5,$alts5); $p5->mark->SetType(MARK_CIRCLE); $graph->AddY(1,$p5); $p5->SetColor("green"); $p5->SetLegend('Exhaust Steam Flow 2 - KPPH'); $graph->ynaxis[1]->SetColor("green"); $graph->ynaxis[1]->title->Set(1); $graph->legend->SetFrameWeight(1); // Output line $graph->StrokeCSIM('../trends/boilersteam.php'); ?>