Bonjour à tous les JpGraphers !

J'ai un souci avec les graph version lignes simples, la fonction SetAntiAliasing ne fonctionne pas

Mes lignes sont toujours de mauvaise qualité

Pour info ça marche avec les pie charts (camembert) en mettant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
$piegraph->SetAntiAliasing();
Mais pas avec les line charts (lignes simples) en mettant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
$graph->img->SetAntiAliasing();
Ce qui est étrange c'est que même lorsque l'Antialias est activé sur mes graph en ligne, je peux toujours changer l'épaisseur de mes lignes alors que ça ne devrait pas être possible_

Est-ce que quelqu'un aurait une idée sur comment solutionner mon problème car après de longues recherches sur le Web, je n'ai rien trouvé !

Merci d'avance pour votre aide, toute suggestion sera la bienvenue. @ bientôt.

Voici mon script

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
 
require_once ('jpgraph/jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph/jpgraph_line.php');
require_once ('jpgraph/jpgraph/jpgraph_utils.inc.php');
 
 
$graph = new Graph(1200,600);
$graph->SetScale("textlin");
$graph->img->SetAntiAliasing();
 
$graph->SetShadow();
 
$theme_class=new UniversalTheme;
 
$graph->SetTheme($theme_class);
$graph->img->SetAntiAliasing();
$graph->title->SetFont(FF_ARIAL,FS_BOLD,20);
$graph->title->SetAlign("center","top");
$graph->title->SetColor('black');
$graph->title->Set(" Test ");
$graph->title->SetBox(true);
 
$graph->SetBox(false);
 
$graph->ygrid->Show();
$graph->ygrid->SetLineStyle("solid");
$graph->yaxis->HideZeroLabel();
$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false,false);
$graph->yaxis->SetFont(FF_FONT1,FS_BOLD);
 
$graph->xgrid->Show();
$graph->xgrid->SetLineStyle("solid");
$graph->xaxis->SetTickLabels($moisfr);
$graph->xaxis->SetLabelMargin(10);
$graph->xaxis->SetFont(FF_FONT1,FS_BOLD);
$graph->xgrid->SetColor('#E3E3E3');
 
// Create the first line
$p1 = new LinePlot($tableau1);
$graph->Add($p1);
$p1->SetColor("#FF8000");
$p1->SetWeight(4);
$p1->SetLegend('Delay');
$p1->value->SetFormat('%d');
$p1->value->SetFont(FF_FONT1,FS_BOLD);
$p1->value->Show();
// Type de point
$p1->mark->SetType(MARK_FILLEDCIRCLE);
// Couleur de remplissage
$p1->mark->SetFillColor("orange");
// Taille
$p1->mark->SetWidth(3);
$graph->legend->SetShadow('gray',5);
$graph->legend->SetFont(FF_FONT2,FS_BOLD,70);
$graph->legend->SetColor('black','orange');
$graph->legend->SetFrameWeight(1);
$graph->legend->SetLineWeight(6);
$graph->legend->SetMarkAbsSize(0);
$graph->legend->SetMarkAbsVSize(8);
$graph->legend->SetMarkAbsHSize(40);
// Output line
$graph->Stroke();
?>
Merci d'avance pour votre aide très précieuse.