Bonjour a tous,
Voila j'utilise JPgraph et je veux incorporer le resultat d'un graph dans ma page:
Je le fais comme ca:
mon code pour graph.inc.php ( le chemin est bon...) est le suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 echo "<img src='inc/graph.inc.php'>";
Or quand je regarde la source genere je ne vosi que :
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 <?php include ("../jpgraph/jpgraph.php"); include ("../jpgraph/jpgraph_pie.php"); include ("../jpgraph/jpgraph_pie3d.php"); $data = array(40,90,21); $legend = array("a","b","c"); $graph = new PieGraph(330,200,"auto"); //$graph->SetShadow(); $graph->title->Set("Activite en Web Design"); $graph->title->SetFont(FF_FONT1,FS_BOLD); $p1 = new PiePlot3D($data); $p1->ExplodeSlice(0); $p1->SetCenter(0.45); $p1->SetLegends($legend); $graph->Add($p1); $graph->Stroke(); ?>
<img src='inc/graph.inc.php'>
et pas de graph, ni d'erreur.
Quelqu'un aurait une idee?
Partager