score:5

Accepted answer

Instead of trying to draw both the reference line and the data line together, consider drawing them separately:

svg.append("svg:path")
    .attr("class", "minline")
    .attr("clip-path", "url(#clip)");   
...
svg.select("path.minline").data([min_data_return]);
...
svg.select("path.minline").attr("d", line);

JSfiddle here with full example: http://jsfiddle.net/qAHC2/6/


Related Query