The Google Charts API is a useful little tool for generating charts. The “API” is actually just a set of parameters you pass to a single URL endpoint: http://chart.apis.google.com/chart
And here’s a simple bar chart example in PHP:
The nice thing about this “frameworks” is it takes 30 seconds to implement in many languages, and the actual API is identical across every language, since it just uses a hash object and the original API as a very simple domain-specific language.
This could be improved with a few more helper functions for different parts of the Google Chart API, but this function remains the most important.