Hi,
The below code contains arrays
$param=array("bw","cpu","auser","gs","cnt");
$color=array("antiquewhite","aquamarine4","cadetblue4","darkgoldenrod","darkorchid");
$legend=array("bw","CPU","AUser","GS","Cnt");
foreach($param as $p){
$dplot[]=new LinePLot($values[$p]);
}
for ($i=0; $i <= 4; $i++) {
$dplot[$i]->SetFillColor($color[$i]);
$dplot[$i]->SetLegend($param[$i]);
}
When I select $param as $param=array("bw","gs");
Then the color and legend will not change as bw and GS. It shows some other value. How to select the color and legend based on the value of $param