Código PHP:
<?php
include ("inc/jpgraph.php");
include ("inc/jpgraph_line.php");
$ydata = array(11, 3, 8, 52, 5, 1, 9, 13, 5, 7, 5, 3);
//Estos valores obtenerlos de la base de datos y en lugar que en el eje de las x aparezca 1,2,3,4,5.... etc aparezca enero,febrero,marzo.....
$graph = new Graph(550, 450, "auto");
$graph->SetScale( "textlin");
$graph->img->SetMargin(40, 20, 20, 40);
$graph->title->Set("JpGraph Demo");
$graph->xaxis->title->Set("Meses" );
$graph->yaxis->title->Set("No. de Visitas" );
$lineplot =new LinePlot($ydata);
$lineplot ->SetColor("blue");
$graph->Add( $lineplot);
$graph->Stroke();
?>
AYUDA POR PIEDAD