pyramidgap.php
Back to Chart Graphics
setPyramidSize(100, 100, 60, 120);
# Set the layer gap
$c->addTitle("Gap = " . $gap, "Arial Italic", 15);
$c->setLayerGap($gap);
# Set the elevation to 15 degrees
$c->setViewAngle(15);
# Set the pyramid data
$c->setData($data);
# Set the layer colors to the given colors
$c->setColors2(DataColor, $colors);
# Output the chart
$viewer->setChart($c, SVG);
}
# This example includes 6 charts
$viewers = array();
for ($i = 0; $i < 6; ++$i) {
$viewers[$i] = new WebChartViewer("chart$i");
createChart($viewers[$i], $i);
}
?>
Pyramid Gap
Pyramid Gap
renderHTML(), " ";
}
?>