Creating Dynamic Charts

So I've been playing with Image_graph, a PEAR extension library for PHP, and I've discovered how to manipulate it into creating dynamic charts that actually have a nice crisp appearance.

The idea is you have an XML file in the background that contains information about the graph, and rather than manipulate the code each time to create a new graph, you manipulate the XML graph, and then produce the graph you want. In fact, you should be able to set up a Cron job to manipulate the graph, and produce dynamic graphs that change based on whatever circumstances you can program.

For instance, a school could use these charts to display a histogram of the school's daily percent attendance for the current month, which is useful for statistical reasons.

Here's an example (click on the image to see a larger version):

samplechart.png