-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc3_2bubblechart.html
160 lines (150 loc) · 4.36 KB
/
dc3_2bubblechart.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html>
<head>
<title>765 DC3</title>
<style type="text/css">
#myText {
text-align: center; /*align our text in center*/
color: teal; /*set color to teal*/
font-family: Tahoma; /*change font family*/
font-size: 40px; /*set font size to 66 pixels*/
}
#image{
visibility: hidden;/* hide the image */
width: 100%; /* set width of image to 100% of body */
height: 50%; /* set height of image to 50% of body */
}
.title {
font-size: 40px;
}
/*.center {
margin: auto;
text-align:center;
width: 50%;
border: 3px solid green;
padding: 10px;
}*/
.viewof-index{
margin: auto;
text-align:center;
width: 50%;
border: 3px solid green;
padding: 10px;
}
.chart{
margin: auto;
width: 100%;
/*border: 3px solid green;*/
padding: 10px;
}
.button {
background-color: #008CBA; /* #4CAF50 Green */ /* #008CBA Blue margin: 4px 2px;*/
border: none;
color: white;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
margin:0 auto;
cursor: pointer;
border-radius: 8px;
transition-duration: 0.4s;
}
.button1 {
background-color: #4CAF50;
}
.button:hover {
background-color: #4CAF50; /* Green */
color: white;
}
.center {
margin: 0;
position: absolute;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
</style>
</style>
<!-- <style>
body {
margin: 0;
color: #fff;
font-family: 'Press Start 2P', cursive;
line-height: 1.8;
display: flex;
align-items: center;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
}
.wrapper {
text-align: center;
margin: auto;
}
.title {
font-size: 40px;
margin-bottom: 50px;
letter-spacing: 12px;
}
#chart {
min-height: 350px;
margin: 10px auto 40px;
}
.left {
float: left;
}
.right {
float: right;
}
#newgame input {
color: #fff;
background: #000;
cursor: pointer;
border: 2px solid #fff;
border-radius: 10px;
padding: 10px 15px;
font: 15px 'Press Start 2P', cursive;
outline: none;
}
</style> -->
</head>
<body>
<p id="myText">DC3 Design2: Zoomable Bubble Chart</p>
<div class="center">
<button class="button" onclick="location.href='https://abhayk1201.github.io/765_DC3/dc3_1sunburst.html'" type="button">
Design1</button>
<button class="button button1" onclick="location.href='https://abhayk1201.github.io/765_DC3/dc3_2bubblechart.html'" type="button">
Design2</button>
<button class="button" onclick="location.href='https://abhayk1201.github.io/765_DC3/dc3_3nodelink.html'" type="button">
Design3</button>
<button class="button" onclick="location.href='https://abhayk1201.github.io/765_DC3/dc3_4treemap.html'" type="button">
Design4</button>
</div>
<br>
<br>
<p style="text-align:center; font-size:15px"><b> <font color="red">WAIT! </b> </font>Click on a block to expand and click on the gap to go back, or click on the white (leaf) node to go back to root node. </p>
<div class="chart"></div>
<p style="text-align:center; font-size:10px">Credit: <a href="https://observablehq.com/@abhayk1201/zoomable-circle-packing">Zoomable Bubble Chart</a></p>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@abhayk1201/zoomable-circle-packing.js?v=3";
(new Runtime).module(define, name => {
if (name === "chart") return Inspector.into(".chart")();
});
</script>
<!-- <div class="viewof-index"></div>
<div class="chart"></div>
<p style="text-align:center; font-size:10px">Credit: <a href="https://observablehq.com/@abhayk1201/animated-treemap">Animated Treemap by Abhay Kumar</a></p>
<script type="module">
import {Runtime, Inspector, Library} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@abhayk1201/animated-treemap.js?v=3";
// const runtime = new Runtime(Object.assign(new Library, {width: 200}));
(new Runtime).module(define, name => {
if (name === "viewof index") return Inspector.into(".viewof-index")();
if (name === "chart") return Inspector.into(".chart")();
return ["update"].includes(name) || null;
});
</script> -->
</body>
</html>