Change Data on Scatter Plot

I have created a Scatter Plot with Plotly and now I want to create a dropdown to change the Data which gets plotted. I think it should work with the restlye methode but I have not found an example of it.

So the goal is that I want to chose via dropdown which data gets selected on the x axis and y axis.
I also want to give each dot of the scatter plot the name which is listed in another array, so I have many Arrays and I want to pick 2 of them via dropdown and 1 of them should be the name of each plot, is that possible?

The scatter Plot actually looks like this :slight_smile: