Session Ready
Exercise

Hover Info (Part 2)

Adding info to the tooltip makes more data available to you and to your audience. In this exercise, you will learn how to set the hover info in rbokeh layers.

You will use the hdi_cpi_2015 dataset containing data about Corruption Perception Index (CPI) and Human Development Index (HDI) in 2015.

Corruption Perception Index (CPI) data is available at Transparancy International website and it measures "the perceived levels of public sector corruption worldwide". The Human Development Index (HDI) data is published by the UNDP.

Note that:

  • rbokeh is pre-loaded
  • hdi_cpi_2015 is available in this session.
Instructions
100 XP
  • Explore the hdi_cpi_2015 data using str().
  • Plot human_development_index versus corruption_perception_index.
  • Color points by continent and set point size to 6.
  • Add country and cpi_rank as hover info.