# How to add sliders to plotly graphs

**URL:** <https://community.plotly.com/t/how-to-add-sliders-to-plotly-graphs/45544>\
**Category:** 📊 Plotly Python\
**Created:** [September 30, 2020, 7:31pm UTC](https://community.plotly.com/t/how-to-add-sliders-to-plotly-graphs/45544 "2020-09-30T19:31:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John-A](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@John-A](https://community.plotly.com/u/John-A)\
**Post date:** [September 30, 2020, 7:31pm UTC](https://community.plotly.com/t/how-to-add-sliders-to-plotly-graphs/45544/1 "2020-09-30T19:31:42Z")

</div>

I have a plotly graph that contains a larger circle and a smaller circle inside. At the moment the smaller circle is drawn according to the x and y of a dataframe. I want to update the figure to add vertical and horizontal sliders that take the exact x and y position of the smaller circle and can allow the user to adjust the sliders as the smaller circle changes.

Your guidance and help is highly appreciated.

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