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…) 🤔
Currently if you clip a mark, the tip doesn't get clipped and you might end up with surprising results when using facets.
For example the tip shown below, belongs to the facet highlighted in red.
(The cause in this case is that the y scale's domain is set to [0, 0.09] and the excess area between 9% and 100% is clipped out.)
The text was updated successfully, but these errors were encountered: