-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
168 lines (141 loc) · 6.43 KB
/
index.html
File metadata and controls
168 lines (141 loc) · 6.43 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
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
<!doctype html>
<html lang="en">
<head>
<title>Data Buddy</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="static/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/bootstrap-icons.css">
<link rel="stylesheet" href="static/css/styles.css">
</head>
<body>
<main>
<nav class="navbar fixed-top bg-dark my-0 p-0 d-flex justify-content-between" id="navbar">
<div class='nav-link' style="cursor: pointer" id="help-btn">
<i class="bi bi-info-circle"></i>
</div>
<div class='nav-link' style="cursor: default; color:#212529;" id="secret-btn">
CLICK ME
</div>
<span style="color: darkorange; cursor:default; font-size:2rem; text-shadow: 1px 1px 1px white;">
<strong><em>DATA</em></strong> 🧐 <strong><em>BUDDY</em></strong>
</span>
<div class='nav-link'>
</div>
<a href="https://github.com/ericmuckley/data-buddy" target="_blank" class='nav-link'>
<i class="bi bi-github"i></i> Source
</a>
</nav>
<div id="main-content" class="p-5 mt-3">
<div class="alert alert-light" role="alert" id="help-alert" style="display:none; border:1px solid darkorange; border-radius:15px;">
<div class="d-flex justify-content-between">
<h4>Using Data Buddy</h4>
<button type="button" class="btn-close" id='close-help-alert-btn'></button>
</div>
<p>
Data Buddy is a tool for visualizing, studying, and iteracting with numerical datasets.
First upload a CSV file using the upload button. Your CSV file should contain headers - column names -
in the fiirst cell of each column. Each column is assumed to correspond to a single variable, while
each row corresponds to a single sample of that variable.<br><br>
After uploading your CSV file, explore your data by configuring plots, examining distributions of
different variables, and comparing correlations between different variables.
</p>
</div>
<!--
<div class="mt-2 d-flex" style="display: flex; align-items: center;">
<span style="white-space: nowrap; font-size: 1.1rem;">
Upload a CSV file
</span>
<input class="form-control form-control-sm rounded-pill" type="file" id="file-upload" accept=".csv,.CSV">
</div>
<div class="d-flex justify-content-between">
<span></span>
<p class='fake-link' id="use-example-csv-btn" style="font-size:0.9rem;">
Don't have a CSV file ready? Use an example file
</p>
<span></span>
</div>
-->
<div class="d-flex justify-content-between" style='display:flex; align-items:flex-end;'>
<h5>Upload a CSV file</h5>
<div class='fake-link px-5' id="use-example-csv-btn" style="font-size:1rem;">
Don't have a CSV file ready? Use an example file
</div>
</div>
<input class="form-control form-control-sm rounded-pill mb-3" type="file" id="file-upload" accept=".csv,.CSV">
<div class="text-center mt-2" id='loading-div' style="display:none;">
<h3>Loading dataset...</h3>
<div class="spinner-border" style="width: 5rem; height:5rem;">
</div>
</div>
<div id="data-stats-div" class='my-1 text-center' style="font-size:1.5rem; font-weight:bold;">
</div>
<div id="plot-row" style="display:none;">
<div class="row mt-3">
<div class="col my-div m-2">
<h4>Histogram</h4>
<div class="my-2 d-flex" style="display:flex; align-items: center;">
<span style="white-space: nowrap; font-size: 1.1rem;">
Select column to plot
</span>
<select class="form-select form-select-sm shadow-none rounded-pill" id="histogram-select"></select>
</div>
<div class='d-flex'>
<div id="histogram-plot-div">
</div>
<div id="histogram-stats-div">
</div>
</div>
</div>
<div class="col my-div m-2">
<h4>Scatter</h4>
<div class="my-2 d-flex" style="display:flex; align-items: center;">
<span style="white-space: nowrap; font-size: 1.1rem;">
Select x-axis to plot
</span>
<select class="form-select form-select-sm shadow-none rounded-pill" id="x-axis-select"></select>
</div>
<div class="my-2 d-flex" style="display:flex; align-items: center;">
<span style="white-space: nowrap; font-size: 1.1rem;">
Select y-axis to plot
</span>
<select class="form-select form-select-sm shadow-none rounded-pill" id="y-axis-select"></select>
</div>
<div class='d-flex'>
<div id="scatter-plot-div">
</div>
<div id="scatter-stats-div">
</div>
</div>
</div>
<div class="col my-div m-2">
<h4>Pearson <emph>r<sup>2</sup></emph> correlations</h4>
<div id="correlation-map-div" class='mt-2 text-center'>
</div>
</div>
<!--
<div class="col my-div m-2">
<h4>Column details</h4>
<div id="column-details-div" style="width:100%; overflow:auto; max-height:300px;">
</div>
</div>
-->
<div class="col my-div m-2">
<h4>Dataset</h4>
<div id="table-div" style="width:100%; overflow:auto; max-height:300px;">
</div>
</div>
</div>
</div>
</div>
</main>
<script src="static/js/d3.min.js"></script>
<script src="static/js/plotly-latest.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/utils.js"></script>
<script src="static/js/init.js"></script>
<script src="static/js/plotly_utils.js"></script>
<script src="static/js/plotting.js"></script>
</body>
</html>