score:1

Accepted answer

The problem comes from line and line2 x functions where you give d.Date as argument but date has been defined with a lowercase key in the source object.

var line = d3.svg.line()
    .defined(function(d) { return !isNaN(d.points); })
    .interpolate("cubic")
    .x(function(d) { return x(d.date); }) // <-- change to lowercase date
    .y(function(d) { return y(d.points); });

var line2 = d3.svg.line()
    .defined(function(d) { return !isNaN(d.points); })
    .interpolate("cubic")
    .x(function(d) {return x2(d.date); }) // <-- change to lowercase date
    .y(function(d) {return y2(d.points); });

Related Query

More Query from same tag