in assets/telemetry-metrics.js [187:209]
function displayCharts() {
while (window.allCharts.length > 0) {
window.allCharts.pop().destroy();
}
const channel = window.channelStatus.toLowerCase();
const platform = window.platformStatus;
const history = window.historyStatus;
const latestDate = new Date(window.telemetryData.at(-1).date);
let cutoffDate = new Date(latestDate);
cutoffDate.setDate(latestDate.getDate() - history);
cutoffDate = cutoffDate.toISOString().split('T')[0];
const filteredData = window.telemetryData.filter(row => row.channel === channel && row.os === platform &&
row.date >= cutoffDate);
writeContentTitle();
window.metrics.forEach(metric => {
displayChartForMetric(filteredData, metric[0]);
});
}