setPieSize(250, 120, 100); # Add a title box using 15 points Times Bold Italic as font $c->addTitle("Project Cost Breakdown", "timesbi.ttf", 15); # Draw the pie in 3D $c->set3D(); # Use the side label layout method $c->setLabelLayout(SideLayout); # Set the pie data and the pie labels $c->setData($data, $labels); # output the chart header("Content-type: image/png"); print($c->makeChart2(PNG)); ?>