Project

vis-gem

0.0
No commit activity in last 3 years
No release in over 3 years
vis.js library wrapper for easy use in RoR.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.9
~> 10.0
 Project Readme

vis.js on RoR

Gem Version Build Status

A dynamic, browser based visualization library. vis.js is designed to be easy to use, to handle large amounts of dynamic data, and to enable manipulation of and interaction with the data. More info at vis.js official website.

vis-gem wraps vis.js dependencies in assets pipeline in Ruby on Rails (=> 3.1) projects.

Actual vis.js version is 4.21.0 (released on 12 Oct 2017, see release notes).

Thanks to luciuschoi for the original idea.

Installation

Add this line to Gemfile:

gem 'vis-gem'

And then execute:

$ bundle

Or install it with:

$ gem install vis-gem

Usage

  1. Add this to application.js (assets/javascripts/application.js):
//= require ...
//= require vis
//= require ...
  1. Add this to application.scss (assets/stylesheets/application.scss):
...
@import "vis";
...
  1. And this to config/initializers/assets.rb (for assets):
Rails.application.config.assets.precompile += %w( network/* )

See original vis.js documentation for vis.js properties and methods.

Changelog

  • v4.21.0.0: Update with vis.js v4.21.0 (released on 12 Oct 2017, see release notes).
  • v4.20.0.1: Update with vis.js v4.20.1 (released on 4 Jul 2017, see release notes).
  • 4.20.0: First Release with vis.js v4.20.0 (released on 21 May 2017, see release notes).

Contributing

See Contributing document.

License

(C) Fabrizio Fallico 2017, released under the MIT license.