100){ $labelsY[] = $i;} # Create a XYChart object of size 250 x 250 pixels $c = new XYChart(300, 250); $c->setPlotArea(40, 10, 200, 200); $c->yAxis->setTitle("%"); $c->xAxis->setTitle("Années"); # Add a line chart layer using the given data $c->addLineLayer($dataG); # 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)); ?>