How to get PointerX transform on Dual Axis Bar Line to highlight both Bar and Line?

Hi again,

We’ve been using dual axis bar line charts with the implementation B from Fil’s
handy notebook
Now we look to add some interactions with the PointerX transform so that both the Bar and Dot are highlighted but the Dot only seems to highlight when pointer is on it. A notebook with implementations is here. The last implementation shows the desired effect but was wondering if there’s a way to stay more in Plot land than going into d3.

Thanks for any guidance,

Thanks for the notebook. My understanding is that the sub-plot doesn’t receive the pointer events when the pointer doesn’t touch the visual. One possible fix is to add an invisible frame:

Plot.frame({pointerEvents: “all”, stroke:null}),

1 Like