davidw / chartr forked from watsonian/chartr

Plugin for Ruby on Rails that wraps the Plotr graph API. Based on and extending David Welton's Chartr plugin (http://chartr.rubyforge.org/).

This URL has Read+Write access

chartr / README
100644 25 lines (12 sloc) 0.518 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
= Chartr -- A Ruby interface to the Flotr Javascript chart library
 
Flotr: http://solutoire.com/category/flotr/
 
== Simple example (from outside of Rails)
 
  <% @c = Chartr::BarChart.new(:bars => {:barWidth => 0.5}, :yaxis => {:min => 0}) %>
  <% @c.data = [[[1,2], [2,4], [3,6]], [[1.5,1], [2.5,1], [3.5,8]]] %>
 
    <div id="barchart" style="width:600px;height:300px;">
    </div>
 
  <%= javascript_tag(@c.output('barchart')) %>
 
== Installation
 
== License
 
Chartr is released under the MIT license.
 
== Support