Black Lives Matter. Please consider donating to Black Girls Code today.

Add new div element onclick of a bar in barchart

I would like to implement an on-click function in a bar-chart that I have created using plotly-react.js. When a bar is clicked, a panel would be displayed on the right side of the chart that would have information related to the bar. Is it possible to link chart to an external div element ?