Exercise

Sales in a Dash app

Your Plotly graphs are making a great impact at the company. However, it is difficult to share your work with other colleagues. You are constantly having to export your graphs as images or HTML files, and when there's a new version, you need to send many emails.

It would be better if you could serve up the graphs you create as a web application. You decide to try this out on your line graph of monthly sales by country.

The ecom_sales dataset is available, and line_fig has been recreated for you.

As a reminder, in this course, you must include __name__ inside dash.Dash() for the app to run, but in your own projects, you can leave this out.

Instructions

100 XP
  • Create a blank Dash app object.
  • Set up the app layout to be a single graph component.
  • Insert the line graph created for you into the Dash app.
  • Set the app to run the server in development mode when the script is run from the console.