Skip to content

RobAtHedtek/jquery-sparkline-rails

Repository files navigation

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 'sparklines' towards the top of your source in the usual fashion.

For Coffeescript

#= require 'sparklines'

For JavaScript

//= require 'sparklines'

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

About

Packages jquery.sparklines library as a Gem for Ruby on Rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published