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
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
Just add a require 'sparklines' towards the top of your source in the usual fashion.
For Coffeescript
#= require 'sparklines'
For JavaScript
//= require 'sparklines'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request