Custom Charts w/ Perl and GD 112
An anonymous reader writes "This article describes techniques you can use to create new levels of usefulness in your dynamically generated charts with Perl and GD. Cook up some automatically generated graphs for your organizational meetings or live enterprise directory data. Annotate the charts with readable text that delivers more information than the standard pie chart. Using the power of GD and Perl, you can link various data and images together to create sophisticated charts that will help bring visual interest to your applications."
For the Pythonista wanting charts and graphs... (Score:3, Informative)
Re:These charts look like shit (Score:4, Informative)
The code looks easy enough to experiment with your own artwork, so I look forward to seeing how much better you can do.
Re:wow! (Score:5, Informative)
If that's still not tickling your fancy then I would suggest matplotlib [sourceforge.net] which is actually pretty versatile, and produces good looking plots. There's also PyX [sourceforge.net] if you're looking for slightly more raw graphical interaction with nice output. Truth be told, however, after messing around with many of the same options you have, I've found that Gnuplot, once you get over the initial learning hurdle and figure out how to turn out nice looking plots, is the fastest and easiest way to turn out plots and charts.
Ruby / Gruff (Score:3, Informative)
Use JPGraph instead (Score:3, Informative)
I think it's dual licensed, with a very modest fee for commercial use.
Re:How does one do this in HTML? (Score:3, Informative)
You can probably emulate a bar graph using tables, if you're particularly anal about doing it in HTML. Hell, you could probably do a line graph with a whole tonne of 1-pixel cells in a table, but I wouldn't recommend it.
Re:Ah, charts in Perl... (Score:3, Informative)
The command line interface of grace isn't terrible--it is MUCH more powerful than most plotting software which has a GUI. I do agree it is under-documented, though. Fortunately, the developers are very responsive in the forums [weizmann.ac.il].
Re:wow! (Score:3, Informative)
You can draw charts on the client side instead (Score:1, Informative)
Some examples:
Dojo Toolkit [ajaxian.com]
I think I've seen a live charting demo on Dojo's official website, but it seems to be no longer there.
WT Toolkit [sourceforge.net]
This one seems to be a new project, judging from the activity charts on their SourceForge page [sourceforge.net]. The way they can draw 3D charts (like, pie charts, 3D bar charts) with inline SVG and VML is quite amazing though.