Skip to content

Commit bbc6099

Browse files
committed
feat: display time series in viewer
1 parent 9b24050 commit bbc6099

58 files changed

Lines changed: 590 additions & 247 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323

2424
- name: Prepare static files
25-
run: cp output/viewer.html output/index.html
25+
run: cp output/overview.html output/index.html
2626

2727
- name: Upload artifact
2828
uses: actions/upload-pages-artifact@v3

output/overview.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>TheGreenEpoch Results Viewer</title>
7+
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
8+
<script src="https://cdn.jsdelivr.net/npm/papaparse@5.5.2/papaparse.min.js"></script>
9+
<link rel="stylesheet" href="style.css">
10+
</head>
11+
<body>
12+
13+
<div class="header">
14+
<h1><span>&#127758;</span> TheGreenEpoch Results Viewer</h1>
15+
<div class="upload-zone" id="dropZone">
16+
<input type="file" id="fileInput" accept=".csv">
17+
<label for="fileInput"><span class="icon">&#128194;</span> <span id="fileLabel">Choose CSV or drop here</span></label>
18+
</div>
19+
</div>
20+
21+
<div class="container" id="app">
22+
<div class="empty-state" id="emptyState">
23+
<div class="big-icon">&#128202;</div>
24+
<p>Load a <code>pilot_results.csv</code> to explore the simulation output.</p>
25+
</div>
26+
27+
<div id="content" style="display:none">
28+
<div class="cards" id="summaryCards"></div>
29+
<div class="charts">
30+
<div class="chart-card"><h3>CO&#8322; Savings by Run</h3><canvas id="chartSavings"></canvas></div>
31+
<div class="chart-card"><h3>Score by Run</h3><canvas id="chartScore"></canvas></div>
32+
<div class="chart-card full-chart"><h3>CO&#8322; Savings vs Overhead</h3><canvas id="chartScatter"></canvas></div>
33+
</div>
34+
<div class="table-card" id="tableCard">
35+
<div class="table-header">
36+
<h3>All Runs</h3>
37+
<span class="count" id="rowCount"></span>
38+
</div>
39+
<div class="table-wrap">
40+
<table><thead id="tableHead"></thead><tbody id="tableBody"></tbody></table>
41+
</div>
42+
</div>
43+
</div>
44+
</div>
45+
46+
<script src="overview.js"></script>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)