winston/google_visualr — pull request #39 by greinacker (2012-08-12 22:13:47+00:00)
Title: add ability to use listeners

Adds the ability to add listeners to charts. I realize you said this in the readme file:

> For example, Methods and Events as described in Google Chart Tools’ API Docs, for use after a chart has been rendered, are not implemented because they felt more native being written as JavaScript functions, within views or .js files.

This totally makes sense; however, there isn't an easy way to "wire up" these javascript listeners when using this gem. The attached change is intended to be a generic way to attach callbacks to these charts, without (IMHO) violating the spirit of what you're talking about in the readme...

ref issue #38