threedarea.php
Back to Chart Graphics
setPlotArea(45, 30, 200, 200);
# Add a title to the chart using 12pt Arial Bold Italic font
$c->addTitle("Daily Server Utilization", "Arial Bold Italic", 12);
# Add a title to the y axis
$c->yAxis->setTitle("MBytes");
# Add a title to the x axis
$c->xAxis->setTitle("June 12, 2001");
# Add a green (0x00ff00) 3D area chart layer using the give data
$c->addAreaLayer($data, 0x00ff00)->set3D();
# Set the labels on the x axis.
$c->xAxis->setLabels($labels);
# Display 1 out of 3 labels on the x-axis.
$c->xAxis->setLabelStep(3);
# Output the chart
$viewer = new WebChartViewer("chart1");
$viewer->setChart($c, SVG);
# Include tool tip for the chart
$viewer->setImageMap($c->getHTMLImageMap("", "", "title='Hour {xLabel}: Traffic {value} MBytes'"));
?>
3D Area Chart
3D Area Chart
renderHTML(); ?>