function displayChartForTest()

in assets/ml-metrics.js [175:197]


function displayChartForTest(data, id, unit) {
  labels = data.map(row => row.date);
  dataset = [{
      label: "firefox",
      data: data.map(row => row.value),
      fill: false,
      borderWidth: 1,
      tension: 0.1,
  }];

  // Only add trendline's when there are enough data points.
  dataset.forEach(ds => {
    if (ds.data.length > 5) {
      ds["trendlineLinear"] = {
        style: "rgba(255,105,180, .8)",
        lineStyle: "dotted",
        width: 2
      }
    }
  });

  plotChart(id, labels, dataset, unit);
}