-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.html
More file actions
92 lines (76 loc) · 2.8 KB
/
example.html
File metadata and controls
92 lines (76 loc) · 2.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example</title>
<meta name="description" content="Example">
<meta name="author" content="Joey De Pauw">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons">
<link rel="stylesheet"
href="https://unpkg.com/bootstrap-material-design@0.5.10/dist/css/bootstrap-material-design.min.css"
crossorigin="anonymous">
<!--Font Awesome-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="static/css/circular.css">
<link rel="stylesheet" type="text/css" href="static/css/style.css">
</head>
<body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-path.v1.min.js"></script>
<script src="https://d3js.org/d3-shape.v1.min.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="static/js/circular.js"></script>
<script type="text/javascript">
var body = d3.select("body");
circular(
body, // element to append svg to
{
"items": [
{"id": "A", "label": "Airplane", "icon": "plane"},
{"id": "B", "label": "Bicycle", "icon": "bicycle"},
{"id": "C", "label": "Car", "icon": "car"}
],
"itemsets": [
{
"items": ["C"],
"support": 0.4830097087378641
},
{
"items": ["A", "B"],
"support": 0.5339805825242718
},
{
"items": ["C", "A"],
"support": 0.4029126213592233
},
{
"items": ["B"],
"support": 0.6650485436893204
},
{
"items": ["C", "A", "B"],
"support": 0.25
},
{
"items": ["C", "B"],
"support": 0.30339805825242716
},
{
"items": ["A"],
"support": 0.8009708737864077
}
]
},
800, // size
true // use context circle
);
</script>
</body>
</html>