<script src="zoomcharts/zoomcharts.js"></script>(where
zoomcharts
is the name of the folder where you extracted the library)<script src="//cdn.zoomcharts-cloud.com/1/latest/zoomcharts.js"></script>
<div id="chart"></div>
<script> var t = new NetChart({ container: document.getElementById("chart"), area: { height: 350 }, data: { preloaded: { nodes: [ { id: "foo" }, { id: "bar" }, { id: "baz" } ], links: [ { id: "foo-bar", from: "foo", to: "bar" }, { id: "bar-baz", from: "bar", to: "baz" }, { id: "baz-foo", from: "baz", to: "foo" } ] } }, interaction: { selection: { lockNodesOnMove: false } } }); </script>