|Perl: the Markov chain saw|
Portable simple line graph module?by gianni76 (Initiate)
|on Dec 11, 2005 at 14:11 UTC||Need Help??|
gianni76 has asked for the
wisdom of the Perl Monks concerning the following question:
I need to be able to write a small program which does some display of simple x-y data.
I have seen the wonders of RRD, but I consider this not very portable and too complex, as it needs compilation and I have to work on multiple machines with no easy access to root permissions. The servers in general do not have access to GD or Imagemagik or anything like that and can be both win32 and linux.
What I would need is a module in pure perl which helps with basic line graphs with no installation requirements (just dump in the release directory and 'use' it from the perl script).
I can insert a series of files on the main directory of my program, but not much more.
The approach taken here: http://www.gerd-tentler.de/tools/perlgraphs/ is exactly what I would need. They have written a small .pm library with most of the functions to do simple but effective displays of graphs. Just their library is only for histograms/pie charts, while I would need some form of line plotting (x-y representation of data).
I would also be prepared to use GD if there was a way to make it portable, i.e. add max 5 library files to the release directory of my script with GD libraries, but am not sure if this is possible.
Any help or suggestions? Probably someone must have written something before the success of GD around.... x-y charting is so useful!
Edit: g0n - linkified link