builtinsymbols.php
Back to Chart Graphics
setPlotArea(55, 40, 400, 350, -1, -1, 0xc0c0c0, 0xc0c0c0, -1);
# Add a title to the chart using 18pt Times Bold Itatic font.
$c->addTitle("Built-in Symbols", "Times New Roman Bold Italic", 18);
# Set the axes line width to 3 pixels
$c->xAxis->setWidth(3);
$c->yAxis->setWidth(3);
# Ensure the ticks are at least 1 unit part (integer ticks)
$c->xAxis->setMinTickInc(1);
$c->yAxis->setMinTickInc(1);
# Add each symbol as a separate scatter layer.
for($i = 0; $i < count($symbols); ++$i) {
$c->addScatterLayer(array($i % 7 + 1.0), array((int)($i / 7) + 1.0), "", $symbols[$i], 17);
}
# Output the chart
$viewer = new WebChartViewer("chart1");
$viewer->setChart($c, SVG);
# Include tool tip for the chart
$viewer->setImageMap($c->getHTMLImageMap("", "", "title='(x, y) = ({x}, {value})'"));
?>
Built-in Symbols
Built-in Symbols
renderHTML(); ?>