Changeset 32770 for _plugins_/jpgraph

Show
Ignore:
Timestamp:
11/08/09 23:41:01 (9 months ago)
Author:
olivier.gautier@…
Message:

On complète le modèle de graphe "radar"
On peut désormais proposer jusqu'à trois séries de données

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _plugins_/jpgraph/jpgraph_fonctions.php

    r32752 r32770  
    201201                if ($marqueur['fond']) $plot->mark->SetFillColor($marqueur['fond']); 
    202202                if ($marqueur['epaisseur'])$plot->mark->SetWidth($marqueur['epaisseur']); 
     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                } 
    203216                 
     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 
    204230                break; 
    205231