Código PHP:
<?php
include ("src/jpgraph.php");
include ("src/jpgraph_line.php");
// Callback to negate the argument
function _cb_negate($aVal) {
return round(-$aVal);
}
// A fake depth curve
$ydata = array(1,5,8,6,6,6,7,5,3,2,1,2,3,5);
/*$xdata = array("fecha 1","fecha 2","fecha 3","fecha 4","fecha 5","fecha 6","fecha 7",
"fecha 8","fecha 9","fecha 10","fecha 11","fecha 12","fecha 13","fecha 14");*/
$n = count($ydata);
for($i=0; $i<$n; ++$i) {
$ydata[$i] = round(-$ydata[$i]);
}
// Create the graph. These two calls are always required
// Basic graph setup
$graph = new Graph(400,300,"auto");
$graph->SetScale("linlin");
$graph->img->SetMargin(50,50,60,40);
$graph->SetMarginColor('darkblue');
$graph->SetColor('darkblue');
$graph->title->Set("Progresión fechas");
$graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->title->SetColor("white");
// Setup axis
$graph->xaxis->SetColor("lightblue","white");
$graph->yaxis->SetColor("lightblue","white");
$graph->ygrid->SetColor("blue");
$graph->yaxis->SetLabelFormatCallback("_cb_negate");
$lp1 = new LinePlot($ydata);
$lp1->SetColor("yellow");
$lp1->SetWeight(1);
$graph->Add($lp1);
$graph->Stroke();
?>
![](http://img225.imageshack.us/img225/8510/graf1phptv8.png)
como hago para que me quede abajo como deberia ser?