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

Connected

Exercise

Adding an HTML list to Dash

While working at your desk, someone from the Marketing department saw the last little dashboard you produced and asked you to create one for them. They would like a bar chart of the top categories by total sales amount, with a list below that notes the top few categories for a quick glance.

They also have a few stylistic notes, but they all seem within your knowledge base, given your recent work in HTML and Dash.

Your task is to extend the dashboard you created to include a list of the top categories and their sales volume.

Instructions

100 XP
  • Create an ordered list below line 20 using Dash.
  • Add two list elements containing the num1_cat and num2_cat variables with their sales volumes to the ordered list below line 22.
  • Add a line break below line 26 so the copyright notice appears on its own.