peterkeen/ledger-web — Issue #5: Basic charts
Author: peterkeen
Created: 2012-01-11 00:57:18+00:00
State: open

Add a simple-to-use charting thing using google js charts. Have one main helper that does this:

<% google_chart(@report) do %>
// buncha JS to set up the chart
<% end %>

Have a few basic helpers like this:

<%= basic_line_chart(@report, :series0 => [:col_name, :col_name], :series1 => [:col_name, :col_name], :x_axis => :col_name) %>
<%= basic_bar_chart(@report, :series0 => [:col_name, :col_name], :x_axis => :col_name) %>