Should it be possible to filter the _tip_ mark when creating it implicitly via the _tip_ option on a different mark? #2394
Replies: 1 comment
-
|
It doesn’t work because the tip mark that is derived when you use the tip option copies over the mark state from the originating mark (the dot), ignoring the filter transform: Lines 516 to 520 in 1c6b239 The goal of sharing state rather than recomputing values is mainly performance, but it also helps if for some reason any of the channels are nondeterministic (which is rare… but maybe you want to jitter some points). Maybe you could explain a little more about what you want to do with the (transformed and binned) data on hover? A render transform might be the right choice. You could also use the pointer transform on another mark, and repeat your transforms (duplicating the computations), rather than using the tip option. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider this plot definition:
The
tipobject above is passed to to theTipmark constructor, which has no documentedfilteroption. So we cannot actually disable tips based on the displayed data (or generally). I’m wondering if we should.My actual use case involves the need to access the (transformed and binned) data for a mark on hover. I’m trying to avoid duplicating these computations when using the Pointer mark. I was working off of the Histogram selection example, but I don’t need the tip mark.
The same behaviour can be achieved by overriding the render function:
Beta Was this translation helpful? Give feedback.
All reactions