Heeft hier iemand al eens gewerkt met php graph.
ik heb al gezocht naar een tutorial maar ik ken er nergens eentje vinden.
elders op dit forum heb ik dit script al gevonden
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
include ("JPGraph/src/jpgraph.php");
include ("JPGraph/src/jpgraph_bar.php");
$data = array(94,60,34);
$leg = array("Mark","Piet","Klaas");
$graph = new Graph(250,150,"auto");
$graph->SetScale("textint");
$graph->img->SetMargin(50,30,50,50);
$graph->AdjBackgroundImage(0.4,0.7,-1); //setting BG type
$graph->SetBackgroundImage("linux_pez.png",BGIMG_FILLFRAME); //adding image
$graph->SetShadow();
$graph->xaxis->SetTickLabels($leg);
$bplot = new BarPlot($data);
$bplot->SetFillColor("lightgreen"); // Fill color
$bplot->value->Show();
$bplot->value->SetFont(FF_ARIAL,FS_BOLD);
$bplot->value->SetAngle(45);
$bplot->value->SetColor("black","navy");
$graph->Add($bplot);
$graph->Stroke();
?>
Hierbij krijg ik alleen de volgende error:
Fatal error: Call to undefined method Graph::AdjBackgroundImage() in C:\wamp\www\Grafiek\grafiek.php on line 21
Iemand die hier verstand van heeft??
Alvast bedankt
Jesper
2.682 views