simplearea.php
Back to Chart Graphics
setPlotArea(30, 20, 200, 200);
# Add an area chart layer using the given data
$c->addAreaLayer($data);
# 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} GBytes'"));
?>
Simple Area Chart
Simple Area Chart
renderHTML(); ?>