pyramidelevation.php
Back to Chart Graphics
setPyramidSize(100, 100, 60, 120);
# Set the elevation angle
$c->addTitle("Elevation = " . $angle, "Arial Italic", 15);
$c->setViewAngle($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 Elevation
Pyramid Elevation
renderHTML(), " ";
}
?>