setPieSize(300, 140, 120); # Add a title to the pie chart using 18 pts Times Bold Italic font $c->addTitle("Revenue Breakdown for $selectedMonth/$selectedYear", "timesbi.ttf", 18) ; # Draw the pie in 3D with 20 pixels 3D depth $c->set3D(20); # Set label format to display sector label, value and percentage in two lines $c->setLabelFormat("{label}<*br*>\${value|2}M ({percent}%)"); # Set label style to 10 pts Arial Bold Italic font. Set background color to the same # as the sector color, with reduced-glare glass effect and rounded corners. $t = $c->setLabelStyle("arialbi.ttf", 10); $t->setBackground(SameAsMainColor, Transparent, glassEffect(ReducedGlare)); $t->setRoundedCorners(); # Use side label layout method $c->setLabelLayout(SideLayout); # Set the pie data and the pie labels $c->setData($data, $labels); # Create the image and save it in a temporary location $chart1URL = $c->makeSession("chart1"); # Create an image map for the chart $imageMap = $c->getHTMLImageMap("piestub.php", "", "title='{label}:US\$ {value|2}M'") ; ?>