Google recently made the API for google charts public. It takes parameters using URL query strings and returns png image for the chart.
What we have here is a small wrapper plugin in rails for the google charts.
It is simple to use:
would create something like this:
For more usage, visit the Google charts on Rails project.