slopegraph in d3.js