Slopegraph generation in D3.js a la Tufte