1. Learn
  2. /
  3. Courses
  4. /
  5. Interactive Data Visualization with Bokeh

Exercise

Products sold by the time of day

The bakery would like a view of how many products are sold at different times of the day.

A figure, fig, has been set up and preloaded, including a HoverTool to display the time of day, item name, and the number of items sold.

You will need to modify add a title to the legend so stakeholders understand its meaning, move the legend to avoid obstructing the view of observations and change the legend to hide observations upon clicking.

Instructions

100 XP
  • Add a title to the legend called "Time of Day".
  • Move the legend to the top left corner.
  • Make the legend interactive, hiding observations by their legend label upon click.