pyramidrotation.php
Back to Chart Graphics
setPyramidSize(100, 100, 60, 120);
# Set the elevation to 15 degrees and use the given rotation angle
$c->addTitle("Rotation = " . $angle, "Arial Italic", 15);
$c->setViewAngle(15, $angle);
# Set the pyramid data
$c->setData($data);
# Set the layer colors to the given colors
$c->setColors2(DataColor, $colors);
# Leave 1% gaps between layers
$c->setLayerGap(0.01);
# Output the chart
$viewer->setChart($c, SVG);
}
# This example includes 7 charts
$viewers = array();
for ($i = 0; $i < 7; ++$i) {
$viewers[$i] = new WebChartViewer("chart$i");
createChart($viewers[$i], $i);
}
?>
Pyramid Rotation
Pyramid Rotation
renderHTML(), " ";
}
?>