polarspline.php
Back to Chart Graphics
addTitle2(TopLeft, "<*underline=2*>EM Field Strength", "Arial Bold Italic", 15);
# Set center of plot area at (230, 240) with radius 180 pixels
$c->setPlotArea(230, 240, 180);
# Set the grid style to circular grid
$c->setGridStyle(false);
# Add a legend box at the top right corner of the chart using 9pt Arial Bold font
$c->addLegend(459, 0, true, "Arial Bold", 9)->setAlignment(TopRight);
# Set angular axis as 0 - 360, with a spoke every 30 units
$c->angularAxis->setLinearScale(0, 360, 30);
# Add a red (0xff9999) spline area layer to the chart using (data0, angles0)
$c->addSplineAreaLayer($data0, 0xff9999, "Above 100MHz")->setAngles($angles0);
# Add a blue (0xff) spline line layer to the chart using (data1, angle1)
$layer1 = $c->addSplineLineLayer($data1, 0x0000ff, "Below 100MHz");
$layer1->setAngles($angles1);
# Set the line width to 3 pixels
$layer1->setLineWidth(3);
# Output the chart
$viewer = new WebChartViewer("chart1");
$viewer->setChart($c, SVG);
# Include tool tip for the chart
$viewer->setImageMap($c->getHTMLImageMap("", "",
"title='{dataSetName} EM field at {angle} deg: {value} Watt'"));
?>
Polar Spline Chart
Polar Spline Chart
renderHTML(); ?>