| | 203 | if ($legendedeux[0]) $plot->SetLegend($legendedeux[0]); |
| | 204 | |
| | 205 | if ($donneetrois) { |
| | 206 | $plot3 = new RadarPlot($donneetrois); |
| | 207 | if ($couleurtrois['contour']) $plot3->SetColor($couleurtrois['contour']); |
| | 208 | if ($couleurtrois['fond']) $plot3->SetFillColor($couleurtrois['fond']); |
| | 209 | if (isset($marqueur_formes[$marqueurtrois['nom']])) $plot3->mark->SetType($marqueur_formes[$marqueurtrois['nom']]); |
| | 210 | if ($marqueurtrois['contour']) $plot3->mark->SetColor($marqueurtrois['contour']); |
| | 211 | if ($marqueurtrois['fond']) $plot3->mark->SetFillColor($marqueurtrois['fond']); |
| | 212 | if ($marqueurtrois['epaisseur'])$plot3->mark->SetWidth($marqueurtrois['epaisseur']); |
| | 213 | $graph->Add($plot3); |
| | 214 | if ($legendedeux[2]) $plot3->SetLegend($legendedeux[2]); |
| | 215 | } |
| | 217 | if ($donneedeux) { |
| | 218 | $plot2 = new RadarPlot($donneedeux); |
| | 219 | if ($couleurdeux['contour']) $plot2->SetColor($couleurdeux['contour']); |
| | 220 | if ($couleurdeux['fond']) $plot2->SetFillColor($couleurdeux['fond']); |
| | 221 | if (isset($marqueur_formes[$marqueurdeux['nom']])) $plot2->mark->SetType($marqueur_formes[$marqueurdeux['nom']]); |
| | 222 | if ($marqueurdeux['contour']) $plot2->mark->SetColor($marqueurdeux['contour']); |
| | 223 | if ($marqueurdeux['fond']) $plot2->mark->SetFillColor($marqueurdeux['fond']); |
| | 224 | if ($marqueurdeux['epaisseur'])$plot2->mark->SetWidth($marqueurdeux['epaisseur']); |
| | 225 | $graph->Add($plot2); |
| | 226 | if ($legendedeux[1]) $plot2->SetLegend($legendedeux[1]); |
| | 227 | } |
| | 228 | if (count($legende)>1) $graph->legend->SetReverse(); |
| | 229 | |