-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
200 lines (198 loc) · 11 KB
/
index.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width"/>
<title>GitHub Activity Visualization</title>
<!--Bootstrap-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<!--D3.js-->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!--D3.js Component-->
<!--D3.js legend -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.25.6/d3-legend.min.js"></script>
<!--D3.js format -->
<script src="https://cdn.jsdelivr.net/npm/d3-format@3"></script>
<script src="https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<!-- Slim Select 2.0 -->
<script src="https://unpkg.com/slim-select@latest/dist/slimselect.min.js"></script>
<link href="https://unpkg.com/slim-select@latest/dist/slimselect.css" rel="stylesheet">
<!-- favicon LINK -->
<link rel="shortcut icon" href="public/favicon.ico" type="image/x-icon">
<link rel="icon" href="public/favicon.ico" type="image/x-icon">
<!-- src -->
<link href="src/style.css" rel="stylesheet">
<script src="src/boxplot.js"></script>
<script src="src/barchart.js"></script>
<script src="src/repocard.js"></script>
<script src="src/piechart.js"></script>
<script src="src/linechart.js"></script>
<script src="src/scatterplot.js"></script>
<script src="src/index.js"></script>
</head>
<body>
<header class="text-center p-2">
<h2><a href="/">GitHub Activity Visualization</a></h2>
</header>
<div class="container">
<div class="row d-flex flex-row my-5">
<div class="col-2 dropdown">
<button id="btn-drop-year" type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
ALL</button>
<ul id="li-year" class="dropdown-menu" aria-labelledby="btnGroupDropYear">
<li><button class="dropdown-item year-item" onclick="setYear('ALL');">ALL</button></li>
</ul>
</div>
<div class="col-10">
<select id="user-select">
</select>
</div>
</div>
<div class="row mb-3" style="height:700px;">
<div class="col-6 text-center py-3">
<h5>기간별 기여내역 추이</h5>
<svg width="400" height="400" id="line-chart">
</svg>
<div class="wrapper my-5">
<div class="slider">
<div class="progress"></div>
</div>
<div class="range-input">
<input type="range" class="range-start" min="0" max="100" value="0">
<input type="range" class="range-end" min="0" max="100" value="100">
</div>
<div id="slider-input" class="d-flex my-3 justify-content-center">
<div class="field">
<span>Start</span>
<input type="date" id="input-start" value="2023-05-01">
</div>
<div class="seperator">-</div>
<div class="field">
<span>End</span>
<input type="date" id="input-end" value="2023-05-20">
</div>
</div>
</div>
</div>
<div class="col-6 text-center">
<h5>기간내 Repository별 기여내역</h5>
<svg width="400" height="400" id="pie-chart">
</svg>
<div class="tooltip bs-tooltip-top show" id="pie-tooltip" role="tooltip" style="display:none">
<div class="tooltip-arrow"></div>
<div class="tooltip-inner">
stat
</div>
</div>
<h5>기간내 상위 기여 Repository</h5>
<div id="repo-stat" class="text-center">
<div id="repo-info-1" class="d-flex flex-row justify-content-between">
<span>1</span>
<div class="me-2"></div>
<svg></svg>
</div>
<div id="repo-info-2" class="d-flex flex-row justify-content-between">
<span>2</span>
<div class="me-2"></div>
<svg></svg>
</div>
<div id="repo-info-3" class="d-flex flex-row justify-content-between">
<span>3</span>
<div class="me-2"></div>
<svg></svg>
</div>
<div id="repo-info-4" class="d-flex flex-row justify-content-between">
<span>4</span>
<div class="me-2"></div>
<svg></svg>
</div>
<div id="repo-info-5" class="d-flex flex-row justify-content-between">
<span>5</span>
<div class="me-2"></div>
<svg></svg>
</div>
</div>
</div>
</div>
<div class="row my-5">
<div class="d-flex flex-column align-items-center col-6">
<h5>유저 기여 분포</h5>
<div class="d-flex flex-row">
<span class="mx-4">X:</span>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="x-encoding" value="commit_count" id="x-commits" checked>
<label class="form-check-label" for="x-commits">Commits</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="x-encoding" value="issue_count" id="x-issues">
<label class="form-check-label" for="x-issues">Issues</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="x-encoding" value="pr_count" id="x-prs">
<label class="form-check-label" for="x-prs">PRs</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="x-encoding" value="total_additions" id="x-additions">
<label class="form-check-label" for="x-additions">Additions</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="x-encoding" value="total_deletions" id="x-deletions">
<label class="form-check-label" for="x-deletions">Deletions</label>
</div>
</div>
<div class="d-flex flex-row mb-4">
<span class="mx-4">Y:</span>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="y-encoding" value="commit_count" id="y-commits">
<label class="form-check-label" for="y-commits">Commits</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="y-encoding" value="issue_count" id="y-issues">
<label class="form-check-label" for="y-issues">Issues</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="y-encoding" value="pr_count" id="y-prs">
<label class="form-check-label" for="y-prs">PRs</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="y-encoding" value="total_additions" id="y-additions" checked>
<label class="form-check-label" for="y-additions">Additions</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="y-encoding" value="total_deletions" id="y-deletions">
<label class="form-check-label" for="y-deletions">Deletions</label>
</div>
</div>
<h6>전체 유저 분포</h6>
<svg width="400" height="400" id="scatterplot">
</svg>
<h6>이상치 제거 유저 분포</h6>
<svg width="400" height="400" id="scatterplot-detail">
</svg>
<div class="tooltip bs-tooltip-top show" id="sc-tooltip" role="tooltip" style="display:none">
<div class="tooltip-arrow"></div>
<div class="tooltip-inner">
stat
</div>
</div>
</div>
<div class="d-flex flex-column align-items-center col-6 gap-5">
<h5>선택 유저 집단의 기여 Boxplot</h5>
<svg width="400" height="150" id="boxplot-commit_count">
</svg>
<svg width="400" height="150" id="boxplot-pr_count">
</svg>
<svg width="400" height="150" id="boxplot-issue_count">
</svg>
<svg width="400" height="150" id="boxplot-total_additions">
</svg>
<svg width="400" height="150" id="boxplot-total_deletions">
</svg>
</div>
</div>
</div>
</body>
</html>