setPlotArea(45, 30, 200, 200); # Add a title to the chart using 12 pts Arial Bold Italic font $c->addTitle("Daily Server Utilization", "arialbi.ttf", 12); # Add a title to the y axis $c->yAxis->setTitle("MBytes"); # Add a title to the x axis $c->xAxis->setTitle("June 12, 2001"); # Add a green (0x00ff00) 3D area chart layer using the give data $areaLayerObj = $c->addAreaLayer($data, 0x00ff00); $areaLayerObj->set3D(); # 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)); ?>