Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (32 sloc) 1.49 KB

jquery-sparkline-rails

Sparklines are small but intense charts. jquery.sparklines generates a range of cool sparklines using JavaScript.

This project packages jquery.sparkline - a great little sparkline library - as a Gem for Ruby on Rails. Great for keeping your pipe clean and tidy

License: New BSD License (just like jquery.sparkline)

Rails: 3.2 and up

jquery-sparkline-rails 2.0 includes jquery.sparkline 2.0

Installation

Add this line to your application's Gemfile:

gem 'jquery-sparkline-rails', git: "https://github.com/RobAtHedtek/jquery-sparkline-rails.git"

And then execute:

$ bundle

Or install it yourself as:

$ gem install jquery-sparkline-rails

Usage

Just add a require 'jquery.sparkline' towards the top of your source in the usual fashion.

For Coffeescript

#= require 'jquery.sparkline'

For JavaScript

//= require 'jquery.sparkline'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request