Skip to content
mwarnock edited this page Sep 12, 2010 · 4 revisions

This is a rails plugin. If you are unfamiliar with how to install rails plugins you’ll want to look here for guidance. To install it run this from the root of your rails app:

ruby script/plugins install git://github.com/mwarnock/rails-google-visualization-plugin.git
mv vendor/plugins/rails/rails-google-visualization-plugin vendor/plugins/google_visualization #It needs to be renamed for the sake of rails auto loading

You’ll then need to add the following line in the head tag of your layout:

<%= setup_google_visualizations %>

This is to include all the necessary javascript from google in order to use the visualizations. Once that’s done you’re ready to start. There are wiki pages on each of the visualization this plugin provides.

Clone this wiki locally