We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Useful for drawing a halo around an area that uses d3.curveStepAfter:
function curveStepOutside(context) { var y0, i; return { lineStart: function() { y0 = NaN, i = 0; }, lineEnd: function() {}, point: function(x, y) { x -= y0 > y ? +0.5 : -0.5, y -= 0.5; if (++i === 1) context.moveTo(x, y0 = y); else context.lineTo(x, y0), context.lineTo(x, y0 = y); } }; }
As seen in Mona Lisa Histogram.
The text was updated successfully, but these errors were encountered:
Probably want two versions for above (or top?) and below (bottom?):
function curveStepBelow(context) { var y0, i; return { lineStart: function() { y0 = NaN, i = 0; }, lineEnd: function() {}, point: function(x, y) { x -= y0 < y ? -0.5 : +0.5, y += 0.5; if (++i === 1) context.moveTo(x, y0 = y); else context.lineTo(x, y0), context.lineTo(x, y0 = y); } }; }
Sorry, something went wrong.
And two more for left and right…
No branches or pull requests
Useful for drawing a halo around an area that uses d3.curveStepAfter:
As seen in Mona Lisa Histogram.
The text was updated successfully, but these errors were encountered: