Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/visjs/vis-network
:dizzy: Display dynamic, automatically organised, customizable network views.
https://github.com/visjs/vis-network
diagram hacktoberfest network visjs
Last synced: 10 days ago
JSON representation
:dizzy: Display dynamic, automatically organised, customizable network views.
- Host: GitHub
- URL: https://github.com/visjs/vis-network
- Owner: visjs
- License: apache-2.0
- Created: 2019-07-16T18:47:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T04:03:28.000Z (7 months ago)
- Last Synced: 2024-04-13T21:44:11.258Z (7 months ago)
- Topics: diagram, hacktoberfest, network, visjs
- Language: JavaScript
- Homepage: https://visjs.github.io/vis-network/
- Size: 1.28 GB
- Stars: 2,824
- Watchers: 27
- Forks: 347
- Open Issues: 312
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE-2.0
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
- awesome - visjs/vis-network - :dizzy: Display dynamic, automatically organised, customizable network views. (JavaScript)
- awesome-visjs - vis-network - Display dynamic, automatically organised, customizable network views. (Libraries / Documentation & Help)
- awesome-ccamel - visjs/vis-network - :dizzy: Display dynamic, automatically organised, customizable network views. (JavaScript)
- awesome-starred - visjs/vis-network - :dizzy: Display dynamic, automatically organised, customizable network views. (hacktoberfest)
- awesome-list - vis-network
- awesome-frontend-graph-library - vis-network
- awesome - visjs/vis-network - :dizzy: Display dynamic, automatically organised, customizable network views. (JavaScript)
- awesome - visjs/vis-network - :dizzy: Display dynamic, automatically organised, customizable network views. (JavaScript)
README
# vis-network
![example chart](common-docs-files/img/network.png)
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.
## Badges
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Renovate](https://badges.renovateapi.com/github/visjs/vis-network)](https://app.renovatebot.com/)
[![npm](https://img.shields.io/npm/v/vis-network)](https://www.npmjs.com/package/vis-network)[![dependencies Status](https://david-dm.org/visjs/vis-network/status.svg)](https://david-dm.org/visjs/vis-network)
[![devDependencies Status](https://david-dm.org/visjs/vis-network/dev-status.svg)](https://david-dm.org/visjs/vis-network?type=dev)
[![peerDependencies Status](https://david-dm.org/visjs/vis-network/peer-status.svg)](https://david-dm.org/visjs/vis-network?type=peer)[![GitHub contributors](https://img.shields.io/github/contributors/visjs/vis-network.svg)](https://github.com/visjs/vis-network/graphs/contributors)
[![Backers on Open Collective](https://opencollective.com/visjs/backers/badge.svg)](#backers)
[![Sponsors on Open Collective](https://opencollective.com/visjs/sponsors/badge.svg)](#sponsors)## Install
Install via npm:
$ npm install vis-network
## Example
A basic example on loading a Network is shown below. More examples can be
found in the [examples directory](https://github.com/visjs/vis-network/tree/master/examples/)
of the project.```html
Network
#mynetwork {
width: 600px;
height: 400px;
border: 1px solid lightgray;
}
// create an array with nodes
var nodes = new vis.DataSet([
{ id: 1, label: "Node 1" },
{ id: 2, label: "Node 2" },
{ id: 3, label: "Node 3" },
{ id: 4, label: "Node 4" },
{ id: 5, label: "Node 5" },
]);// create an array with edges
var edges = new vis.DataSet([
{ from: 1, to: 3 },
{ from: 1, to: 2 },
{ from: 2, to: 4 },
{ from: 2, to: 5 },
{ from: 3, to: 3 },
]);// create a network
var container = document.getElementById("mynetwork");
var data = {
nodes: nodes,
edges: edges,
};
var options = {};
var network = new vis.Network(container, data, options);
```
## Build
To build the library from source, clone the project from github
$ git clone git://github.com/visjs/vis-network.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-network
$ npm installThen, the project can be build running:
$ npm run build
## Test
To test the library, install the project dependencies once:
$ npm install
Then run the tests:
$ npm run test
## Contribute
Contributions to the vis.js library are very welcome! We can't do this alone!
### Backers
Thank you to all our backers! 🙏
### Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
## License
Copyright (C) 2010-2018 Almende B.V. and Contributors
Copyright (c) 2018-2021 Vis.js contributorsVis.js is dual licensed under both
- The Apache 2.0 License
http://www.apache.org/licenses/LICENSE-2.0and
- The MIT License
http://opensource.org/licenses/MITVis.js may be distributed under either license.