Plugin for Ruby on Rails that wraps the Plotr graph API. Based on and extending David Welton's Chartr plugin (http://chartr.rubyforge.org/).
JavaScript Ruby PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
flotr
lib
tasks
.gitignore
LICENSE
README
environment.rb
init.rb
install.rb
uninstall.rb

README

= 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