Exercise

A draft sales dashboard

Given your great work so far with the e-commerce company, they have asked you to jump on board and help them completely replace their existing dashboards that 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, as well as 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 was the largest order volume.

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

Instructions

100 XP
  • Set up a Dash layout with an overarching Div that will contain a number of sub elements below line 15.
  • Add a .Div() below line 18 containing a dash component to display the line_fig that was created for you on line 8.
  • Add a .Div() below line 20 containing a dash component to display the bar_fig that was created for you on line 11.
  • Add an .H3() title to the Dash layout that contains the max_country variable (the country with the largest total sales amount), which has been created for you.