1. Learn
  2. /
  3. Courses
  4. /
  5. Building Dashboards with Dash and Plotly

Connected

Exercise

Slider for sales data

Analysis of trends and patterns in the global e-commerce company's data has been greatly enhanced with your date pickers. There is a further request to see what categories are driving the 'big ticket' orders.

The company has asked you to build a tool whereby they can select a value (any value, really!) and a graph will show how many sales had an order value greater than that value, split by major category.

You know this would be facilitated well by a range input.

Instructions

100 XP
  • Add a slider component called dcc.Slider with the identifier value_slider below line 16 to select a minimum order value.
  • Set the value parameter of the slider to 0 below line 20.
  • Set the step parameter of the slider to 50 below line 22.