Following on from Shendal's recommendation to check out GD, I think there are several graphing modules which act as wrappers for GD to make creating graphs using GD even easier.
Check out GIFgraph, PNGgraph et al from CPAN.
HTH.
dmtelf
Comment on RE: Re: Dynamically-generated graphical content on NT