How to achieve interactive analysis based on mouse-selected data in Genie with plotlyjs


I have a Genie demo app that contains two figures: a scatter plot and a box plot. My goal is to enable the box plot to update according to the data points I select in the scatter plot when I circle them with the mouse.

The idea just as shown here:

any suggestion or idea for how to achieve it? Thanks for your attention.