<?php include ("jpgraph/jpgraph.php"); include ("jpgraph/jpgraph_line.php"); $graph = new Graph(300, 200, "auto"); $graph->SetFrame(true); $graph->SetScale("textlin"); $graph->img->SetMargin(40, 40, 30, 30); $ydata1 = array(10, 4, 7, 9, 2, 3); $ydata2 = array(5, 12, 3, 8, 5, 9); $lineplot1 = new LinePlot($ydata1); $lineplot1->SetColor(array(255, 0, 0)); $lineplot2 = new LinePlot($ydata2); $lineplot2->SetColor(array(0, 0, 255)); $lineplot1->SetFillColor("orange"); $lineplot2->SetFillColor("yellow"); $graph->Add($lineplot1); $graph->Add($lineplot2); $graph->Stroke(); ?>