score:1

Accepted answer

i would just append an svg line using your scales. as for the y values, use the border cases of your y scale, like so:

svg.append("line")
            .attr("x1",x(53))
            .attr("y1",y(data[0].date))
            .attr("x2",x(53))
            .attr("y2",y(data[data.length - 1].date))
            .attr("stroke","blue");

i have tried it in your fiddle code, i put this code right after the "svg.append("path")" code.


Related Query