par
lmb196 » 01 juin 2006, 23:59
Je n'utilise pas de fichier jpg-config.inc
En fait qd j'utilise : jpgraph_line.php
avec le code
<?php
include ("jpgraph.php");
include ("jpgraph_line.php");
$ydata = array(65,72,81,76,76);
// Creation du graphique
$graph = new Graph(800,200);
$graph->SetScale("textlin");
// Création du système de points
$lineplot=new LinePlot($ydata);
// On rajoute les points au graphique
$graph->Add($lineplot);
// On élargit les marges pour pouvoir placer les légendes (gauche, droite, haut, bas)
$graph->img->SetMargin(40,20,20,40);
$graph->title->Set("Evolution du Nombre de TT/mois ");
$graph->xaxis->title->Set("Mois ");
$graph->yaxis->title->Set("Nb TT ");
// Affichage
$graph->Stroke();
?>
Je n'ai aucun problème
Par contre quand j'utilise jpgraph_pie.php par exemple
avec le code
<?php
include ("jpgraph.php");
include ("jpgraph_pie.php");
include ("jpgraph_pie3d.php");
// Some data
$data = array(20,17,15,20,15,25,25,10);
// Create the Pie Graph.
$graph = new
PieGraph(350,200,"pieex1");
$graph->SetShadow();
// Set A title for the plot
$graph->title->Set("Example 1 3D Pieplot");
$graph->title->SetFont(FF_VERDANA,FS_BOLD,18);
$graph->title->SetColor("darkblue");
$graph->legend->Pos(0.1,0.2);
// Create 3D pie plot
$p1 = new PiePlot3d($data);
$p1->SetTheme("sand");
$p1->SetCenter(0.4);
$p1->SetAngle(50);
$p1->SetFont(FF_TIMES,FS_NORMAL,14);
$p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"));
$graph->Add($p1);
$graph->Stroke();
?>
J'ai le problème de font qui apparait ??
Je n'utilise pas de fichier jpg-config.inc
En fait qd j'utilise : jpgraph_line.php
avec le code
[php]<?php
include ("jpgraph.php");
include ("jpgraph_line.php");
$ydata = array(65,72,81,76,76);
// Creation du graphique
$graph = new Graph(800,200);
$graph->SetScale("textlin");
// Création du système de points
$lineplot=new LinePlot($ydata);
// On rajoute les points au graphique
$graph->Add($lineplot);
// On élargit les marges pour pouvoir placer les légendes (gauche, droite, haut, bas)
$graph->img->SetMargin(40,20,20,40);
$graph->title->Set("Evolution du Nombre de TT/mois ");
$graph->xaxis->title->Set("Mois ");
$graph->yaxis->title->Set("Nb TT ");
// Affichage
$graph->Stroke();
?>[/php]
Je n'ai aucun problème
Par contre quand j'utilise jpgraph_pie.php par exemple
avec le code
[php]<?php
include ("jpgraph.php");
include ("jpgraph_pie.php");
include ("jpgraph_pie3d.php");
// Some data
$data = array(20,17,15,20,15,25,25,10);
// Create the Pie Graph.
$graph = new
PieGraph(350,200,"pieex1");
$graph->SetShadow();
// Set A title for the plot
$graph->title->Set("Example 1 3D Pieplot");
$graph->title->SetFont(FF_VERDANA,FS_BOLD,18);
$graph->title->SetColor("darkblue");
$graph->legend->Pos(0.1,0.2);
// Create 3D pie plot
$p1 = new PiePlot3d($data);
$p1->SetTheme("sand");
$p1->SetCenter(0.4);
$p1->SetAngle(50);
$p1->SetFont(FF_TIMES,FS_NORMAL,14);
$p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"));
$graph->Add($p1);
$graph->Stroke();
?>[/php]
J'ai le problème de font qui apparait ??