Demo Graph

This HTML file calls demo-graph.php to draw an image, and also experiments with using TrueType fonts as drawing items on graphs by calling code similar to demo-ttf.php. It looks like all the correct libraries are installed on the BCA server.

View another experimental graph using the Pooles Cavern data.

This is the source data for this demonstration graph.

Array
(
    [Jan] => 110
    [Feb] => 130
    [Mar] => 215
    [Apr] => 81
    [May] => 310
    [Jun] => 110
    [Jul] => 190
    [Aug] => 175
    [Sep] => 400
    [Oct] => 286
    [Nov] => 150
    [Dec] => 196
)

For this demo, Im drawing a graph and histogram bars. Autem omnia possibilia sunt. The graph-drawing process in PHP is a bit like Matlab, i.e. very precise and very tedious, but very powerful, with good results, including the possibility of very high-res output for dropping into reports.

Technical note: TTF Arial seemed to render differently on locahost. Perhaps it was picking up the font file from an unexpected location?. Lucida Console seens to render the same on both systems. See note in PHP about use of TTF file extension.

FINISHED