Session Ready
Exercise

Monthly temperatures layered

The Australian Bureau Of Meteorology has tasked you with helping them build some nice interactive plots for their website.

They want to look at both the daily temperature from January to July this year and smooth out all the data points with a nice trend line of the monthly average temperature.

This would be an excellent opportunity to layer two plots together to achieve the desired outcome.

You have been provided a temp_syd DataFrame that contains the daily (max) temperature from January to July in 2020. You also have a temp_syd_avg DataFrame containing each month's average daily (max) temperature.

Instructions
100 XP
  • Create an empty figure object.
  • Add a bar chart trace for temp_syd, using Date on the x-axis and Temp as the y-axis with a name of Daily Max Temperature.
  • Add a line chart trace for temp_syd_avg to show the monthly average temperature with a name of Average Monthly Temperature.