Accepted answer

You were setting the domain of the y axis as

y.domain([0, d3.max(data, function(d) { return d.y; })]);

which with the log values won't work because all values are less than 0. To fix, simply use

y.domain(d3.extent(data, function(d) { return d.y; }));

instead. You also might want to use a linear scale instead of a time scale for the x axis. Complete jsfiddle here.

Related Query