average.forEach(function(d) {
        d.end_at = parseDate(d.end_at);
        d.velocity = +d.velocity;
      });