in assets/telemetry-metrics.js [9:24]
function setHistory(history) {
// Find max number of days.
const latestDate = new Date(window.telemetryData.at(-1).date);
const furthestDate = new Date(window.telemetryData.at(0).date);
const maxDays = (latestDate - furthestDate) / (1000 * 60 * 60 * 24);
if (history > maxDays) {
history = maxDays;
}
window.historyStatus = history;
const input = document.getElementById('history-select');
input.value = history;
displayCharts();
}