[JpGraph] epaisseur de courbe
Bonjour à tous,
Voici mon problème, j'ai crée un graphique mais voilà, je n'arrive à changer l'épaisseur de ma courbe pourtant j'utilise la bonne fonction.
Voici mon code:
Code:
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
|
<?
$etp = array(1.2,5,7.4,2,5);
$pluie = array(4,10,4,2,6);
//************************** Création du graphique ****************************
include("./jpgraph/src/jpgraph.php");
include("./jpgraph/src/jpgraph_bar.php");
include("./jpgraph/src/jpgraph_line.php");
//Création du conteneur
$graph = new Graph(950,500);
$graph ->SetScale("textlin");
$plot = new BarPlot($pluie);
$plot2 = new LinePlot($etp);
$plot2->SetWeight(1); //problème ici
$graph -> Add($plot);
$graph -> AddY2($plot2);
//couleur des barres
$plot ->SetFillColor(array('#6b69ff'));
$plot2 -> SetColor('#ff0000');
//$plot -> value -> Show();
//$plot->value->SetFormat('%d');
//Le titre
$graph -> title -> Set("Pluviométrie");
$graph -> xaxis -> SetTextLabelInterval(15);
$graph -> xaxis -> SetTitle('Date', 'middle');
$graph -> xaxis -> SetTitlemargin(25);
$graph -> xaxis -> title -> SetFont( FF_TREBUCHE,FS_BOLD, 12);
//$graph -> xaxis -> title -> SetAngle(90);
$graph->xaxis->SetTickLabels("pluie");
//Création du 2eme axe
$graph -> SetY2Scale("lin");
$graph -> Stroke();
?> |
Quelqu'un saurait pourquoi ça ne fonctionne pas ? :calim2:
Merci :)