We have come up with an approach for the SciRuby D3 GSoC. Basically we decided that for interactive visualisations generating Javascript from Ruby is not the way forward. The clue is already in the D3 name, i.e., data driven documents ;)
What we are proposing is to create the visualisations as pure Javascript components. Components are driven by data in the form of JSON. Components are