SetScale('textlin',0,100); //$graph->SetScale('textlin'); $graph->title->Set("Example on Date scale"); // Slightly larger than normal margins at the bottom to have room for // the x-axis labels $graph->SetMargin(40,40,30,130); // Set the angle for the labels to 90 degrees $graph->xaxis->SetLabelAngle(90); //$line = new LinePlot($data,$xdata); $line = new LinePlot($ydata); $line->SetLegend('Year 2013'); $line->SetFillColor('lightred@0.8'); $graph->xaxis->SetTickLabels($xdata); $graph->xaxis->SetTextLabelInterval(NDATAPOINTS/10); //$graph->Add($line); $line->SetColor('red'); $graph->AddLine($line); $graph->Stroke(); ?>