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 /
name age message
file .gitignore Thu Jun 12 16:07:04 -0700 2008 Initial import. [watsonian]
file LICENSE Mon Feb 16 13:26:45 -0800 2009 Added MIT license. [davidw]
file README Thu Feb 19 12:03:32 -0800 2009 Doc tweaks. [davidw]
directory doc/ Thu Feb 19 12:17:22 -0800 2009 Added generated docs. [davidw]
file environment.rb Wed Feb 18 14:28:42 -0800 2009 Removed chartdata require, moved labeled_data t... [davidw]
directory flotr/ Thu Mar 26 13:43:24 -0700 2009 Updated from svn. [davidw]
file init.rb Mon Feb 16 12:56:33 -0800 2009 New code: strip the charts down to the basics. [davidw]
file install.rb Fri Mar 13 15:24:20 -0700 2009 Added a way to make one big fat chartr.js file. [davidw]
directory lib/ Thu Mar 26 13:43:24 -0700 2009 Updated from svn. [davidw]
directory tasks/ Fri Mar 13 15:24:54 -0700 2009 Removed extraneous ~ file. [davidw]
file uninstall.rb Thu Jun 12 16:07:04 -0700 2008 Initial import. [watsonian]
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