setPlotArea(30, 20, 200, 200); # Add a line chart layer using the given data $c->addLineLayer($data); # Set the labels on the x axis. $c->xAxis->setLabels($labels); # Display 1 out of 3 labels on the x-axis. $c->xAxis->setLabelStep(3); # output the chart header("Content-type: image/png"); print($c->makeChart2(PNG)); ?>