function displayChartForMetric()

in assets/telemetry-metrics.js [176:185]


function displayChartForMetric(data, metric) {
  const filteredData = data.filter(row => row.metric === metric);
  const labels = filteredData.map(row => row.date);
  const meanValues = filteredData.map(row => row.mean);
  const p50Values = filteredData.map(row => row.p_50);
  const p95Values = filteredData.map(row => row.p_95);
  const p99Values = filteredData.map(row => row.p_99);
  plotChart(metric+"-median-mean", labels, meanValues, "Mean", "red", p50Values, "Median", "green");
  plotChart(metric+"-p95-p99", labels, p95Values, "P95", "blue", p99Values, "P99", "orange");
}