Solucion Al primer problema de
dcreate
Código php:
Ver originalrequire_once ("jpgraph/jpgraph.php");
require_once ("jpgraph/jpgraph_line.php");
require_once ("jpgraph/jpgraph_bar.php");
$valor1= $_POST['valor1'];
$valor2= $_POST['valor2'];
$valor3= $_POST['valor3'];
$datay = array($valor1,$valor2,$valor3);
$graph = new Graph(980,680);
$graph->SetMarginColor('white');
$graph->SetScale("intlin");
$graph->SetShadow();
$graph->SetFrame(true);
$graph->img->SetMargin(80,30,80,40);
$graph->title->Set('GRAFICA');
// Create the linear plot
$lineplot=new LinePlot($datay);
$lineplot->SetCenter();
$lineplot->mark->SetType(MARK_FILLEDCIRCLE
); $lineplot->mark->SetWidth(5);
$lineplot->mark->SetColor('black');
$lineplot->mark->SetFillColor('red');
//$lineplot->SetCSIMTargets($targ,$alt);
// Add the plots to the graph
$graph->Add($lineplot);
$graph->Stroke();