Skip to content

Commit 9bc09ab

Browse files
committed
vis for examples
1 parent aae8357 commit 9bc09ab

27 files changed

+54491
-0
lines changed

examples/example-graph.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<html>
2+
<head>
3+
<title>
4+
Graph
5+
</title>
6+
<script src="../third-party-libs/vis/vis.js" type="text/javascript"></script>
7+
<link href="../third-party-libs/vis/vis.css" type="text/css" />
8+
</head>
9+
10+
<body>
11+
<div id="mynetwork"></div>
12+
13+
<script type="text/javascript">
14+
(function(){
15+
var nodes = new vis.DataSet([
16+
{id: 1, label: 'Node 1'},
17+
{id: 2, label: 'Node 2'},
18+
{id: 3, label: 'Node 3'},
19+
{id: 4, label: 'Node 4'},
20+
{id: 5, label: 'Node 5'}
21+
]);
22+
23+
// create an array with edges
24+
var edges = new vis.DataSet([
25+
{from: 1, to: 3},
26+
{from: 1, to: 2},
27+
{from: 2, to: 4},
28+
{from: 2, to: 5},
29+
{from: 3, to: 3}
30+
]);
31+
32+
// create a network
33+
var container = document.getElementById('mynetwork');
34+
var data = {
35+
nodes: nodes,
36+
edges: edges
37+
};
38+
var options = {};
39+
var network = new vis.Network(container, data, options);
40+
})();
41+
</script>
42+
</body>
43+
</html>
Loading
20.5 KB
Loading
20.3 KB
Loading
20.3 KB
Loading
17.9 KB
Loading
17.4 KB
Loading
20.5 KB
Loading
4.36 KB
Loading
20.5 KB
Loading
4.42 KB
Loading
4.05 KB
Loading
4.24 KB
Loading
4.41 KB
Loading
4.36 KB
Loading
4.36 KB
Loading

third-party-libs/vis/vis-graph3d.min.js

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party-libs/vis/vis-network.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party-libs/vis/vis-network.min.js

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)