setPlotArea(40, 10, 200, 200); $c->yAxis->setTitle("%"); $c->xAxis->setTitle("Années"); # Add a line chart layer using the given data $c->addLineLayer($data); # Set the labels. $c->yAxis->setLabels($labelsY); $c->yAxis->setLabelStep(10); $c->xAxis->setLabels($labelsX); # Output the chart header("Content-type: image/png"); print($c->makeChart2(PNG)); ?>