Closed Fil closed 2 years ago
Yes please!!! Amazing.
If this PR lands, you could implement it as a line curve (maybe curveBraceX and curveBraceY?).
EDIT: an apt name might be curveStepRadius
Let's add linkLol
to d3.
Here's an iteration of it that straightens the root.
This abstraction would personally benefit me, and I was surprised to find the lib didn't work that way already. Thanks for this PR, and I look forward to it landing!
This feature looks amazing, thanks!
So I see that this is merged but it's apparently not recognized in d3 v7.8.5 (linkHorizontal().curve is not a function
), am I supposed to do something else to use this?
As is documented in https://d3js.org/d3-shape/link, the feature was merged with the API d3.link(d3.curveBumpY)
, not (the change was in https://github.com/d3/d3-shape/pull/177/commits/02ba973eb20a41847cf72ea94a65e9bda738b843, in this PR).linkHorizontal().curve()
Thank you!
Any change to have the curveStep with smooth angles as suggested in https://github.com/d3/d3-shape/pull/177#issuecomment-809936541?
It could be very useful! I can create a new issue for this if necessary.
Yes please create an issue. Here's supporting code that connects points with a Bézier curve: https://observablehq.com/@d3/curvebezier--dev
Test @ https://observablehq.com/d/504d8793ac6f9487
(We should also test the radial version, though it does not offer a curve option I had to rewrite it to match the internal API.)
bumpX (default)
others