Exercise

Adding a color bar

The agency has requested you include a ColorBar so people viewing the plot will understand the thresholds at which the glyph color changes.

The figure from the previous exercise, a mapper, and glyphs, have all been provided for you.

Instructions

100 XP
  • Import ColorBar.
  • Create color_bar using the relevant key from mapper, and set width to 8 pixels.
  • Add color_bar to the figure's layout on the right-hand side.