Bonsoir,

Voici le code d'un camembert que je génère grâce à la librairie JpGraph :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include ("JPGraph/jpgraph.php");
include ("JPGraph/jpgraph_pie.php");
include ("JPGraph/jpgraph_pie3d.php");
$graph = new PieGraph(950,400,"auto");
$graph->SetShadow();
 
$graph->title->Set("Titre");
$graph->title->SetFont(FF_VERDANA,FS_ITALIC, 14);
 
$graph->SetAntiAliasing('white');
 
 
$p1 = new PiePlot3D($data2);
$p1->SetEdge('white',1); 
 
$p1->SetSize(0.5);$p1->SetAngle(40); 
$p1->SetCenter(0.5,0.56);
 
$p1->SetHeight(11); 
//$p1->ExplodeAll(20);
$lbl = $data;
$p1->SetLabels($lbl);
$p1->SetLabels($lbl);
$p1->SetLabelPos(1); 
$p1->value->SetFont(FF_VERDANA,FS_BOLD, 9);
$p1->value->SetColor("#001133");
 
$p1->value->Show();	
$graph->Add($p1);
$graph->Stroke();
Tout marche parfaitement bien, sauf que j'aimerais rajouter une bordure aux portions du camembert. J'ai donc ajouté "$p1->SetEdge('white',1); ". Cà ne marche pas mais j'ai remarqué que en enlevant la ligne "$graph->SetAntiAliasing('white');", les bordures s'affichent bien. Alors les bordures ne sont pas compatibles avec l'anti aliasing ? Ou existe-t-il une solution ?
Merci beaucoup d'avance,
A+