Session Ready
Exercise

Rainfall by season slider

The Australian Bureau of Meteorology has contracted you for some follow up work to the visualization they loved on rainfall per month in Sydney.

They would love the ability to cycle through seasons. Not as a change-between as in buttons and dropdowns, but more of a slide-between.

Sounds like the perfect job for a slider!

In this exercise, you are tasked with creating a bar chart of the rainfall data with a slider through the seasons.

You have a rain_pm 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 season and create a bar chart trace for each, with the Month on the x-axis and Total Rainfall on the y-axis.