-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
195 lines (161 loc) · 8.27 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>EpiForecast</title>
<link rel="icon" href="images/favicon.png">
<link crossorigin="anonymous" type="text/css" rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" defer />
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> -->
<link href="style.css" rel="stylesheet">
</head>
<body>
<header>
<!-- <div id="logo-container">
<i id="logo-icon" class="fas fa-globe-americas"></i>
<span id="logo-text">MoranPlot Dashboard</span>
</div>
<div id="links-container">
<a href="https://github.com/episphere/moranplot"><i class="fa-brands fa-github"></i> </a>
</div> -->
<div id="main-header">
<div id="logo-container">
<i id="logo-icon" class="fas fa-eye"></i>
<!-- <img src="logo.png" id="logo" alt="logo" > -->
<span id="logo-text">EpiForecast</span>
</div>
<div id="links-container">
<a title="Paper" href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0277149"><i class="fas fa-scroll"></i> </a>
<a title="Video" href="https://youtu.be/kU31yz6kiQA"><i class="fab fa-youtube"></i> </a>
<a title="Notebook" href="https://observablehq.com/@siliconjazz/edm-interpretable-forecasting"><i class="fa-solid fa-circle-info"></i> </a>
<a title="GitHub" href="https://github.com/episphere/forecast"><i class="fa-brands fa-github"></i> </a>
</div>
</div>
<!-- <div id="info-header"><p>Entry for the <a href="http://biovis.net/2024/biovisChallenges_vis/">Bio+MedVis 2024</a> redesign challenge (demo dashboard)</p> </div> -->
</header>
<div id="content">
<div id="file-warning" class="file-request"></div>
<div id="data-config" class="dashboard-card closed">
<div class="collapsible">
<span>Data Configuration</span>
<i class="fas fa-chevron-down"></i>
</div>
<div id="file-select-content" >
Load and configure the data here. You can either upload a data file or link to a
<a href="https://enable-cors.org/"> CORS-enabled</a> data URL. The data must be in CSV or
JSON format. The data should consist of a series of rows with at least one time field
(with values which are either valid dates or integers) and at least one value field
(with values which are numbers). The data can also have a group field. Within each group,
the time values should be evenly spaced.
<a id="example-link" class="state-link">Click here</a> to see an example of loading Florida
COVID-19 data directly from the CDC API.
<div>
<div class="file-select" >
<label for="data-select">File:</label>
<input type="file" id="data-select" accept=".json,.csv" style="display: none;" />
<input type="button" value="Browse..." onclick="document.getElementById('data-select').click();" />
<label id="data-select-label" class="file-select-label" for="data-select">No file selected</label>
</div>
<span class="or"><b>OR</b></span>
<span class="url-select">
<label for="url-input">URL:</label>
<input id="url-input" type="url">
<button id="get-button" type="button">Get</button>
</span>
<span class="or"><b>OR</b></span>
<button id="default-data-button" type="button">Default Mortality Data</button>
<span id="upload-error"></span>
</div>
<div id="field-selects">
<div class="field-stack">
<div>
<label for="tfield-select">Time Field:</label>
<select class="field-select" id="tfield-select" /></select>
</div>
<div>
<input type="checkbox" id="tfield-toggle" checked>
<label>Field Is Date</label><br>
</div>
</div>
<div>
<label for="vfield-select">Value Field:</label>
<select class="field-select" id="vfield-select"></select>
</div>
<div class="field-stack" style="align-items: flex-end">
<div>
<label for="gfield-select">Group Field:</label>
<select class="field-select" id="gfield-select"></select>
</div>
<div>
<label for="g-select">Group:</label>
<select class="field-select" id="g-select"></select>
</div>
</div>
<div style="margin-left: auto; margin-top:auto;">
<button id="run-button" type="button">Run</button>
</div>
</div>
</div>
</div>
<div id="grid-container">
<div id="item1" class="dashboard-card plot-card">
<div id="plot_ts" class="plot"></div>
<div class="time-control">
<div id="time-slider-container" class="slidecontainer">
<span >Timestep:</span>
<input id="c-time-slider" class="slider" type="range">
<span id="c-time-label"></span>
</div>
</div>
</div>
<div id="item2" class="dashboard-card plot-card"><div id="plot_alt" class="plot"></div></div>
<div id="item3" class="dashboard-card plot-card"> <div id="plot_phase" class="plot"></div></div>
<div id="item4" class="dashboard-card plot-card">
<div id="plot-params" class="params">
<div>
<label for="tp" class="inform-label" id="param-label-tp">Horizon:</label>
<input id="param-input-tp" type="number" id="nn" value=16>
</div>
<div>
<label for="E" id="param-label-E" >Embedding:</label>
<input id="param-input-E" class="inform-label" type="number" value=6>
</div>
<div>
<label for="param-input-nn" id="param-label-nn" class="inform-label">Neighbors:</label>
<input id="param-input-nn" type="number" value=8>
</div>
<div>
<label for="param-input-theta" id="param-label-theta" class="inform-label">θ:</label>
<input id="param-input-theta" type="number" value=1.0 step=0.1>
</div>
<button id="param-run" type="button">Run</button>
<div>
<label for="param-kernel-width" id="param-label-kernel-width" class="inform-label">Kernel Width:</label>
<input id="param-kernel-width" type="number" value=0.1 step="0.1">
</div>
<div>
<label for="weight-coloring-toggle"> Weight Coloring</label>
<input type="checkbox" id="weight-coloring-toggle" checked>
</div>
<div>
<label for="show-dates-toggle">Show Dates</label>
<input type="checkbox" id="show-dates-toggle" checked>
</div>
<div style="margin-top:30px">
<label for="export-all-toggle" id="param-label-export" class="inform-label">Export All Futures</label>
<input type="checkbox" id="export-all-toggle" checked/>
</div>
<!-- <div>
<label for="export-all-toggle">Export All Times</label>
<input type="checkbox" id="export-all-toggle">
</div> -->
<button id="export-button" type="button">Export</button>
</div>
</div>
<div id="item5" class="dashboard-card plot-card"><div id="plot_weight" class="plot"></div></div>
</div>
</div>
<script src="src/main.js" type="module"></script>
<!-- <script src="src/SpotCluster.js" type="module"></script> -->
</html>