Get started with vis-network CDN

(Apache-2.0 OR MIT) licensed

Vis-Network: library for interactive browser graphs.

Tags:
  • vis
  • visualization
  • web based
  • browser based
  • typescript
  • javascript
  • chart
  • graph
  • network
  • browser

Stable version

Copied!

How to start using vis-network CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with vis-network CDN - cdnhub.io</title>
  <style>
    #mynetwork {
      width: 100%;
      height: 100%;
    }
  </style>
</head>
<body>
  <div id="mynetwork"></div>
  <script src="https://cdn.cdnhub.io/vis-network/9.1.9/standalone/umd/vis-network.min.js"></script>
  <script>
    const data = {
      nodes: [
        { id: 1, label: 'Node 1' },
        { id: 2, label: 'Node 2' },
      ],
      edges: [
        { from: 1, to: 2 },
      ],
    };

    const options = {};

    const network = new vis.Network('#mynetwork', data, options);
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions