1. Learn
  2. /
  3. Courses
  4. /
  5. Building Dashboards with Dash and Plotly

Connected

Exercise

Hover to update another plot

The global e-commerce company loves the innovation and new life your work is breathing into their tired old reports. The manager for whom you recently built the key stats hover dashboard has sent you a new challenge. While those words provided a great snapshot, a picture is worth a thousand words! The manager has asked if you could produce graphs showing 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
  • Create a callback to update the minor_cat graph when hovering over the scatter plot below line 26.
  • Create a callback to update the major_cat graph when hovering over the scatter plot below line 41.