Coupled events with plotly.js

I wanted to know if I can couple the graphs which are produced with Plotly.js. For example if I create two graphs. One is a scatter plot and the other is barchat. If I drag a selection box in scatter plot I want to know if it is possible to get the related information in barchat and then select one of the bars in barchat to populate the barchat.

The coupling of events between shiny and r is shown here :