Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
initial implementation of variable width line #448
Simulates variable width lines by drawing and connecting two boundary lines. Can be used in much the same way as d3.svg.line, except that the "fill" attribute does what the "stroke" attribute does for normal lines.
I suppose wrappers could be added to make it behave exactly like d3.svg.line (i.e. intercept .attr calls), but I think explaining how it's done in the documentation would be a better option that would offer people more flexibility.
Example at http://bl.ocks.org/1642835