threeddepthpie.php
Back to Chart Graphics
setPieSize(50, 55, 38);
# Set the depth of the 3D pie
$c->set3D($depth);
# Add a title showing the depth
$c->addTitle("Depth = " . $depth . " pixels", "Arial", 8);
# Set the pie data
$c->setData($data, $labels);
# Disable the sector labels by setting the color to Transparent
$c->setLabelStyle("", 8, Transparent);
# Output the chart
$viewer->setChart($c, SVG);
# Include tool tip for the chart
$viewer->setImageMap($c->getHTMLImageMap("", "", "title='{label}: US\${value}K ({percent}%)'"));
}
# This example includes 5 charts
$viewers = array();
for ($i = 0; $i < 5; ++$i) {
$viewers[$i] = new WebChartViewer("chart$i");
createChart($viewers[$i], $i);
}
?>
3D Depth
3D Depth
renderHTML(), " ";
}
?>