Skip to content

Commit c4fe8c4

Browse files
committed
add version string to graph titles
1 parent 17e2627 commit c4fe8c4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/download-graphs.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
</script>
2323
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
2424
<script src=https://unpkg.com/compare-versions/lib/umd/index.js></script>
25+
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
2526
<style>
2627
.toggle-switch {
2728
display: flex;
@@ -182,19 +183,19 @@ <h1>Downloads for past versions</h1>
182183
<div style="width:80%; margin: 20px auto; height: 50vh;">
183184
<canvas id="versionChart"></canvas>
184185
</div>
185-
<h1>All downloads by OS</h1>
186+
<h1>All downloads by OS <span class="version-select-text"></span></h1>
186187
<div style="width:80%; margin: 20px auto; height: 50vh;">
187188
<canvas id="platformChart"></canvas>
188189
</div>
189-
<h1>Installer downloads only by OS</h1>
190+
<h1>Installer downloads only by OS <span class="version-select-text"></span></h1>
190191
<div style="width:80%; margin: 20px auto; height: 50vh;">
191192
<canvas id="installerChart"></canvas>
192193
</div>
193-
<h1>Updates only by OS</h1>
194+
<h1>Updates only by OS <span class="version-select-text"></span></h1>
194195
<div style="width:80%; margin: 20px auto; height: 50vh;">
195196
<canvas id="updaterChart"></canvas>
196197
</div>
197-
<h1>Individual Assets</h1>
198+
<h1>Individual Assets <span class="version-select-text"></span></h1>
198199
<div style="width:80%; margin: 20px auto; height: 50vh;">
199200
<canvas id="downloadsChart"></canvas>
200201
</div>
@@ -448,6 +449,7 @@ <h1>Individual Assets</h1>
448449
const days = parseInt(timePeriod);
449450
const allVersions = Object.keys(prodReleaseHistory);
450451
const lastNVersions = filterLatestNVersions(allVersions, versionInput.value);
452+
$(".version-select-text").text(`- V${versionSelector.value}`);
451453
console.log(`Computing downloads for lat ${versionInput.value} versions`);
452454
let largestTimeSeries = [];
453455
const versionData = {};

0 commit comments

Comments
 (0)