RichOnRails.com Chartkick example.  See http://richonrails.com/articles/charting-with-chartkick for details.