Last week, the news hit the blogosphere that Google had released a beta API for generating graphs using a reasonably easy and transparent GET parametrisation.
Inspired by this, and inspired by my early playing around with Ruby on Rails, I decided to whack together a Rails plugin that takes care of building the Google Charts IMG tag using what I hope is reasonably easy to use syntax.
I have a test-site using random data up for playing around with it.
The test-site as such runs on Ruby on Rails. The controller does some parsing and setting up of relevant arrays, and primarily generates random data for plotting.
The view has the following source code:
<p><% form_tag "" do %>
<%= select_tag "options[type]", options_for_select(@typeopts,@options["type"])
<%= text_field_tag "options[title]", @options["title"] %>