diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
| commit | b28028ac4082842143b0f528d6bc539da6ccb419 (patch) | |
| tree | 1e26ea969a781ed8e323fca4e3c76345113fc694 /www/lib/vis/examples/network/labels/multilineText.html | |
| parent | 676270d21beed31d767a06c89522198c77d5d865 (diff) | |
mega changes, including updates and X
Diffstat (limited to 'www/lib/vis/examples/network/labels/multilineText.html')
| -rw-r--r-- | www/lib/vis/examples/network/labels/multilineText.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/www/lib/vis/examples/network/labels/multilineText.html b/www/lib/vis/examples/network/labels/multilineText.html new file mode 100644 index 00000000..99dc8eb2 --- /dev/null +++ b/www/lib/vis/examples/network/labels/multilineText.html @@ -0,0 +1,52 @@ +<!doctype html> +<html> +<head> + <title>Network | Multiline text</title> + + <style type="text/css"> + #mynetwork { + width: 600px; + height: 600px; + border: 1px solid lightgray; + } + </style> + + <script type="text/javascript" src="../../../dist/vis.js"></script> + <link href="../../../dist/vis-network.min.css" rel="stylesheet" type="text/css" /> + + <script type="text/javascript"> + function draw() { + // create some nodes + var nodes = [ + {id: 1, label: 'Node in\nthe center', shape: 'text', font:{strokeWidth:4}}, + {id: 2, label: 'Node\nwith\nmultiple\nlines', shape: 'circle'}, + {id: 3, label: 'This is a lot of text\nbut luckily we can spread\nover multiple lines', shape: 'database'}, + {id: 4, label: 'This is text\non multiple lines', shape: 'box'}, + {id: 5, label: 'Little text', shape: 'ellipse'} + ]; + + // create some edges + var edges = [ + {from: 1, to: 2, color: 'red', width: 3, length: 200}, // individual length definition is possible + {from: 1, to: 3, dashes:true, width: 1, length: 200}, + {from: 1, to: 4, width: 1, length: 200, label:'I\'m an edge!'}, + {from: 1, to: 5, arrows:'to', width: 3, length: 200, label:'arrows\nare cool'} + ]; + + // create a network + var container = document.getElementById('mynetwork'); + var data = { + nodes: nodes, + edges: edges + }; + var options = {}; + var network = new vis.Network(container, data, options); + } + </script> + <script src="../../googleAnalytics.js"></script> +</head> + +<body onload="draw()"> +<div id="mynetwork"></div> +</body> +</html> |
