Getting zoom info for Plotly plot

Hi everyone,

I have a plotly graph and one another non-plotly component. I wanted to change the data in non-plotly component whenever the user zooms in/out on the plotly graph. Any idea how to go ahead with this? Not able to find anything on that.

Thanks.