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

Connected

Exercise

A draft sales dashboard

Given your great work so far with the e-commerce company, they have asked you to help them completely replace their existing dashboards, which require proprietary software and are costing the organization a mountain of money each month.

This won't be the final product; they want a rough draft of what is possible using Dash. They would like a line chart of their total sales each month and a bar chart of their total sales in each country. It would be good to throw in a high-level summary statistic, such as which month had the largest order volume.

Your task is to create a quick dashboard using Plotly plots stacked on each other.

Instructions

100 XP
  • Set up a Dash layout on line 14.
  • Add the line_fig variable on line 17.
  • Add the bar_fig variable on line 19.
  • Add an .H3() title showing the max_country (the country with the highest total sales).