✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How to get all selectedData from multiple subplots

Hi,

I am trying to update a figure depending on the state of another figure that contains multiple subplots. How can I fetch the information of all selected points? Right now it seems selectedData only contains the information of newest selection and not that of previous selections.

Best regards,
Axel

hi, Illmatic

this might be helpful

https://dash.plotly.com/interactive-graphing

Hi @Garik,

the link you provided does not say anything about subplots. The issue I am having is that selectedData does not contain the selected data from all subplots but only the information from the subplot where the selection was taken from last.

Best regards,
Axel

I was able to achieve what I was looking for by storing the selected points in a global variable and updating it whenever in one of the subplots points are selected.