setDonutSize(75, 60, 50, (int)(50 * $donutRadius / 100)); # Add a title to show the donut width $textBoxObj = $c->addTitle("Inner Radius = $donutRadius %", "Arial", 10); $textBoxObj->setBackground(0xcccccc, 0); # Draw the pie in 3D $c->set3D(12); # Set the pie data and the pie labels $c->setData($data, $labels); # Disable the sector labels by setting the color to Transparent $c->setLabelStyle("", 8, Transparent); # output the chart header("Content-type: image/png"); print($c->makeChart2(PNG)); ?>