-
Notifications
You must be signed in to change notification settings - Fork 2
/
alchemy-template.htm
46 lines (39 loc) · 991 Bytes
/
alchemy-template.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<link rel="stylesheet" href="alchemy/0.4.2/alchemy.css"/>
<style>
.node text {
fill: black;
font-weight: 200;
text-anchor: middle;
text-shadow: none;
}
</style>
</head>
<body>
<div class="alchemy" id="alchemy"></div>
<script src="alchemy/0.4.2/scripts/vendor.js"></script>
<script src="alchemy/0.4.2/alchemy.js"></script>
<script type="text/javascript">
var graph_data = <GRAPH_DATA>;
var config = {
dataSource: graph_data,
directedEdges: true,
backgroundColour: "white",
nodeCaptionsOnByDefault: true,
edgeStyle: {"all":{
"color": "black",
"opacity": 1,
"width": 2,
}},
nodeStyle: {"all":{
"borderColor": "black",
"borderWidth": 2,
"color": "white",
"radius": 30,
}},
};
alchemy = new Alchemy(config)
</script>
</body>
</html>