Why are the relayoutData and selectedData variables of dcc.Graph both changed when using the select box or lasso tool?

@worker1 I don’t quite understand what you are trying to do.

The shapes are stored in the figure.layout.

Here is an example how to access and change them: