Skip to content

sniperwolf/vis-gem

Repository files navigation

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.