0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Flotilla compatible with the asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.0.2
~> 1.7.3
 Project Readme

Flotilla

Flotilla is a Rails plugin that provides the functionality of the flot.js plugin for jQuery within Rails applications.

flotilla-rails

This is an adaptation of joshuamiller/flotilla. It is compatible with the rails asset pipeline.

To use it just include it in your Gemfile:

gem 'flotilla-rails'

Javascript files

By default, the javascript dependencies are rendered inline. Optionally you include the javascript in, for example, your application.js:

//= require flotilla

and tell Flotilla not to render the includes with :js_includes. This is all you need to plot a graph in your view. Example:

chart("graph", { "Store 1" => { :collection => @store_one, :x => :date, :y => :sales } }, { :js_includes => false })

For more information you should check out the Flotilla docs or joshuamiller/flotilla.

Contribute

Please, feel free to contribute pull requests or any feedback.