Generating scatter plot after clicking on a figure in Dash

Hi community,

I have a Plotly plot of polygons.
I wanted to add a functionality that would allow me to generate a scatter plot (preferably in the same window) when I click on any of the polygons.

Does anybody have any ideas on this? I am new to HTML and Plotly …thus would appreciate the help :smiley: