Session Ready
Exercise

Growth locations dropdown

The Australian Government is looking to understand which Local Government Areas (LGAs) have had recent strong population growth to assist in planning infrastructure projects.

They have provided you with some data on the top 5 LGAs by the percentage population increase (from 2018 to 2019) and have asked if you can visualize it. However, they want to be able to select a certain state or see everything at once.

In this exercise, you are tasked with creating a bar chart of this data with a drop-down menu to switch between different states and see all states at once.

You have a pop_growth DataFrame available.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Create the basic figure object using plotly.graph_objects (imported as go).
  • Loop through the DataFrame to subset by state and add a trace (bar chart) for each state.