# Change Data on Scatter Plot

**URL:** https://community.plotly.com/t/change-data-on-scatter-plot/34851
**Category:** 📊 Plotly Python
**Created:** [February 12, 2020, 7:58am UTC](https://community.plotly.com/t/change-data-on-scatter-plot/34851 "2020-02-12T07:58:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nils](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nils](https://community.plotly.com/u/nils)
#### Post date: [February 12, 2020, 7:58am UTC](https://community.plotly.com/t/change-data-on-scatter-plot/34851/1 "2020-02-12T07:58:16Z")

</div>

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 🙂

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/6/6acd30a65b18ad86f59dbe5e50f5da2ebfc43862.png)
