threedanglepie.php
Back to Chart Graphics
setPieSize(50, 55, 38);
# Set the depth and tilt angle of the 3D pie (-1 means auto depth)
$c->set3D(-1, $angle);
# Add a title showing the tilt angle
$c->addTitle("Tilt = " . $angle . " deg", "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 7 charts
$viewers = array();
for ($i = 0; $i < 7; ++$i) {
$viewers[$i] = new WebChartViewer("chart$i");
createChart($viewers[$i], $i);
}
?>
3D Angle
3D Angle
renderHTML(), " ";
}
?>