vikas-vis
v1.0.2
Published
A dynamic, browser-based visualization library.
Downloads
3
Readme
vis.js
Install
Install via npm:
$ npm install vis
Install via bower:
$ bower install vis
A timeline can be instantiated as:
var timeline = new vis.Timeline(container, data, options);
Where container
is an HTML element, data
is an Array with data or a DataSet,
and options
is an optional object with configuration options for the
component.
Build
To build the library from source, clone the project from github
$ git clone git://github.com/almende/vis.git
The source code uses the module style of node (require and module.exports) to
organize dependencies. To install all dependencies and build the library,
run npm install
in the root of the project.
$ cd vis
$ npm install
Then, the project can be build running:
$ npm run build
To automatically rebuild on changes in the source files, once can use
$ npm run watch
This will both build and minify the library on changes. Minifying is relatively
slow, so when only the non-minified library is needed, one can use the
watch-dev
script instead:
$ npm run watch-dev
Note: This package is a clone from visjs.org