Accepted answer

There are many pieces to this...parsing and slicing the data, setting up the x axis, etc. Here is one segment of the code."#slider")
    .on("input", function() {update(+this.value);});

function update(row) {
    viewdata = data.slice((row-1), row);

Here is a complete PLUNK with the solution. NOTE: I have placed comments in several parts of the code, for orientation. I strongly suggest you fork this plunk so that it will not be lost if I inadvertently delete it.

Related Query

More Query from same tag