score:0

Accepted answer

You need to set the domains of the scales.

var x = d3.time.scale().domain(d3.extent(data, function(d) { return parseDate(d.time); }))
        .range([0, width]);

var y = d3.scale.linear().domain(d3.extent(data, function(d) { return d.level_1; }))
        .range([height, 0]);

Complete jsfiddle here.


Related Query

More Query from same tag