Exercise

Hover to update another plot

The global e-commerce company is loving the innovation and new life your work is breathing into their tired old reports. A new challenge has been sent your way by the manager you recently built the key-stats hover dashboard for. While those words provided a great snapshot, a picture is worth a thousand words! The manager has asked if you could produce graphs that would show different subsets depending on what is being hovered over.

Your previous experience with using callbacks to filter data and regenerate figures, in combination with your recent work on hover triggering callbacks, should be just the perfect combination.

Instructions

100 XP
  • Add two components to the layout, which will render Plotly figures below line 30.
  • Create a callback that will update the minor category plot when hovering over the scatter plot below line 39.
  • Create a callback that will update the major category plot when hovering over the scatter plot below line 57.
  • Extract the country from the point that a user will hover over below line 65.