AddIndication(80,100,"red"); $odo2->AddIndication(20,30,"green"); $odo2->AddIndication(65,100,"red"); $odo3->AddIndication(60,90,"yellow"); $odo3->AddIndication(90,100,"red"); //--------------------------------------------------------------------- // Set display values for the odometers //--------------------------------------------------------------------- $odo1->needle->Set(17); $odo2->needle->Set(47); $odo3->needle->Set(86); $odo1->needle->SetFillColor("blue"); $odo2->needle->SetFillColor("yellow:0.7"); $odo3->needle->SetFillColor("black"); $odo3->needle->SetColor("black"); //--------------------------------------------------------------------- // Set scale label properties //--------------------------------------------------------------------- $odo1->scale->label->SetColor("navy"); $odo2->scale->label->SetColor("blue"); $odo3->scale->label->SetColor("darkred"); $odo1->scale->label->SetFont(FF_FONT1); $odo2->scale->label->SetFont(FF_FONT2,FS_BOLD); $odo3->scale->label->SetFont(FF_ARIAL,FS_BOLD,11); //--------------------------------------------------------------------- // Add the odometers to the graph using a vertical layout //--------------------------------------------------------------------- $l1 = new LayoutVert( array($odo1,$odo2,$odo3) ) ; $graph->Add( $l1 ); //--------------------------------------------------------------------- // ... and finally stroke and stream the image back to the browser //--------------------------------------------------------------------- $graph->Stroke(); // EOF ?>