-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathloadDataAsArray.html
More file actions
72 lines (70 loc) · 2.06 KB
/
loadDataAsArray.html
File metadata and controls
72 lines (70 loc) · 2.06 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sequences sunburst</title>
<link rel="stylesheet" type="text/css" href="../sunburst.css"/>
<link rel="stylesheet" type="text/css" href="./examples.css"/>
<script src="../node_modules/d3/dist/d3.min.js" type="text/javascript"></script>
<script src="../sunburst.js" type="text/javascript"></script>
</head>
<body>
<div id="main">
<div id="sunburst-breadcrumbs"></div>
<div id="sunburst-chart">
<div id="sunburst-description"></div>
</div>
</div>
<div id="sidebar">
<input type="checkbox" id="togglelegend"> Legend<br/>
<div id="sunburst-legend" style="visibility: hidden;"></div>
</div>
<script type="text/javascript">
(function() {
var sunburst = new Sunburst({
colors: {
"home": "#5687d1",
"product": "#7b615c",
"search": "#de783b",
"account": "#6ab975",
"other": "#a173d1",
"end": "#bbbbbb"
}
});
sunburst.setData([
["account-account-account",22781],
["account-account-end",3311],
["account-account-home",906],
["account-account-other",1156],
["account-account-product",5969],
["account-account-search",692],
["account-end",7059],
["account-home-account",396],
["account-home-end",316],
["account-home-home",226],
["account-home-other",87],
["account-home-product",613],
["account-home-search",245],
["account-other-account",446],
["account-other-end",229],
["account-other-home",91],
["account-other-other",804],
["account-other-product",776],
["account-other-search",48],
["account-product-account",3892],
["account-product-end",3250],
["account-product-home",531],
["account-product-other",252],
["account-product-product",4876],
["account-product-search",476],
["account-search-account",521],
["account-search-end",39],
["account-search-home",7],
["account-search-other",8],
["account-search-product",536],
["account-search-search",219]
]);
})();
</script>
</body>
</html>