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
My solution in this case is to avoid drawing the segments that go into the clipped zone. Clamping works too!
But both depend on the user doing the right thing; in the process of creating the chart, it was very surprising to see these default tips that were (visually) not connected to anything.
I wonder if fixing this might do more harm than good in some situations, it might be ok to close as won't fix. However, that's what we do with the geo mark: a feature that is completely off-screen gets no tip, and a feature that is clipped gets its (default) tip location in the centroid[1] of the (visible) shape. (Note that a further difficulty is that the shape might be visible even if its reference position is outside the clip region…) 🤔
Activity
mbostock commentedon Oct 30, 2024
Would you expect the tip to be hidden in this case? Or do you want to use clamp instead of clip?
Fil commentedon Oct 30, 2024
My solution in this case is to avoid drawing the segments that go into the clipped zone. Clamping works too!
But both depend on the user doing the right thing; in the process of creating the chart, it was very surprising to see these default tips that were (visually) not connected to anything.
I wonder if fixing this might do more harm than good in some situations, it might be ok to close as won't fix. However, that's what we do with the geo mark: a feature that is completely off-screen gets no tip, and a feature that is clipped gets its (default) tip location in the centroid[1] of the (visible) shape. (Note that a further difficulty is that the shape might be visible even if its reference position is outside the clip region…) 🤔
[1] related: #2098.