You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Plot.tree with a gradient stroke fails on links that are purely horizontal:
The bug (reported by @Pixflowave) is due to the infamous browser issue that an horizontal path has height 0, and thus the gradient is optimized out. (This issue is also often hitting d3-sankey users, d3/d3-sankey#28.)
A way to fix this is to always add some points in any path, to guarantee that the bounding-box’s area is not 0.
For example, one could use: curve: bbCurve(d3.curveBumpX)
Using Plot.tree with a gradient stroke fails on links that are purely horizontal:
The bug (reported by @Pixflowave) is due to the infamous browser issue that an horizontal path has height 0, and thus the gradient is optimized out. (This issue is also often hitting d3-sankey users, d3/d3-sankey#28.)
A way to fix this is to always add some points in any path, to guarantee that the bounding-box’s area is not 0.
For example, one could use:
curve: bbCurve(d3.curveBumpX)
where:
Not sure if this should be done in Plot, as an option of d3 curves, or somewhere else?
The text was updated successfully, but these errors were encountered: