Project

uplot

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A small (< 25 KB min), fast chart for time series, lines, areas, ohlc & bars (MIT Licensed)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.2.4, >= 5.2.4.2
 Project Readme

uPlot Ruby Gem

This gem is a rails engine to include uPlot in your rails application.

Installation

Add this line to your application's Gemfile:

gem 'uplot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install uplot

Usage

To use uPlot in your rails asset pipeline, you'll need to do the following:

In app/assets/javascripts/application.js add

//= require uPlot.iife.min

In app/assets/stylesheets/application.css add

*= require uPlot.min

See the dummy rails app in the test directory for an example of this.

Waiting for the DOM

If using turbolinks:

document.addEventListener('turbolinks:load', function(){
// uPlot code here
}, false);

If not using turbolinks:

document.addEventListener("DOMContentLoaded", function() {
// uPlot code here
}, false);

License

The gem is available as open source under the terms of the MIT License.