0.0
No commit activity in last 3 years
No release in over 3 years
Basic charts based on d3 & d3-tip with consistent tooltips for all charts
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

SleekCharts

Gem Version Bitdeli Badge

Provides Bar and Donut charts with consitent tooltip for Rails applications. This gem uses d3 and d3-tip libraries.

Supports Rails 3.1+

Bar tipDonut tip

Installation

Add this line to your application's Gemfile:

gem 'sleek_charts'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sleek_charts

Once done, add below to application's assets/javascripts/application.js file

//= require sleek_charts

Also, add below to application's assets/stylesheets/application.css file

*= require sleek_charts

Usage

Simply add bar chart to any element, e.g.

barTip(options);
//where options is a map, checkout bar-tip.js
//or with defaults:
barTip({});

or add donut chart to any element, e.g.

donutTip(options);
//where options is a map, checkout donut-tip.js
//or with defaults:
donutTip({});

Example

Contributing

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