Network is a visualization to display networks and networks consisting of nodes and edges. The visualization is easy to use and supports custom shapes, styles, colors, sizes, images, and more. The network visualization works smooth on any modern browser for up to a few thousand nodes and edges. To handle a larger amount of nodes, Network has clustering support. Network uses HTML canvas for rendering.
InstallInstall via npm:
$ npm install vis-network
ExampleA basic example on loading a Network is shown below. More examples can be found in the examples directory of the project.
BuildTo build the library from source, clone the project from github
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
$ git clone git://github.com/visjs/vis-network.git
npm installin the root of the project.
Then, the project can be build running:
$ cd vis-network $ npm install
$ npm run build
TestTo test the library, install the project dependencies once:
Then run the tests:
$ npm install
$ npm run test
ContributeContributions to the vis.js library are very welcome! We can't do this alone!
BackersThank you to all our backers! 🙏
SponsorsSupport this project by becoming a sponsor. Your logo will show up here with a link to your website.
LicenseCopyright (C) 2010-2018 Almende B.V. and Contributors Copyright (c) 2018-2021 Vis.js contributors
Vis.js is dual licensed under both
- The Apache 2.0 License
- The MIT License
Vis.js may be distributed under either license.