var line = d3.svg
        .line()
        .x(function(d) {
          return x(d.date);
        })