setPlotArea(55, 40, 350, 300, -1, -1, 0xc0c0c0, 0xc0c0c0, -1); # Add a title to the chart using 18 pts Times Bold Itatic font. $c->addTitle("Built-in Symbols", "timesbi.ttf", 18); # Set the axes line width to 3 pixels $c->xAxis->setWidth(3); $c->yAxis->setWidth(3); # Add each symbol as a separate scatter layer. for($i = 0; $i < count($symbols); ++$i) { $c->addScatterLayer(array($i % 5 + 1), array((int)($i / 5 + 1)), "", $symbols[$i ], 15); } # output the chart header("Content-type: image/png"); print($c->makeChart2(PNG)); ?>