threedline.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 blue (0x6666ff) 3D line chart layer using the give data
$c->addLineLayer($data, 0x6666ff)->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}: {value} MBytes'"));
?>
3D Line Chart
3D Line Chart
renderHTML(); ?>