Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to make Range Slider and Selector in Plotly?

  • Last Updated : 01 Oct, 2020

A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library.

Creating a range slider and selector

In plotly, the range slider is a custom range-type input control. It allows selecting a value or a range of values between a specified minimum and maximum range. And the range selector is a tool for selecting ranges to display within the chart. It provides buttons to select pre-configured ranges in the chart. It also provides input boxes where the minimum and maximum dates can be manually input.

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course



import plotly.graph_objects as px
import as go
import numpy as np
df =
x = df['total_bill']
y = df['day']
plot = px.Figure(data=[px.Scatter(


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!