vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
417 B

  1. <html>
  2. <head>
  3. <title>Graph | DOT Language</title>
  4. <script type="text/javascript" src="../../dist/vis.js"></script>
  5. </head>
  6. <body>
  7. <div id="mygraph"></div>
  8. <script type="text/javascript">
  9. var container = document.getElementById('mygraph');
  10. var data = {
  11. dot: 'digraph {node[shape=circle]; 1 -> 1 -> 2; 2 -> 3; 2 -- 4; 2 -> 1 }'
  12. };
  13. var graph = new vis.Graph(container, data);
  14. </script>
  15. </body>
  16. </html>