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

Exercise

Evolution of the point guard

The agency is going to run an article on the evolution of the Point Guard position in basketball.

They have asked you to produce a line plot displaying points and assists for two players who have redefined the standards of this position - Steph Curry and Chris Paul. Two Bokeh source objects, steph and chris, have been preloaded for you along with a figure.

You will add line glyphs representing points and assists for the two players, using different glyph settings.

Instructions

100 XP
  • Add line glyphs to represent Steph Curry's average points, filling in green, and setting the width to 2 and transparency to 0.5.
  • Display Steph Curry's average assists as line glyphs filled in purple, setting the width to 4 and transparency to 0.3.
  • For Chris Paul's average points, add line glyphs filled in red, setting the width to 1 and transparency to 0.8.
  • Add line glyphs to represent Chris Paul's average assists, filled in orange, with a width of 3 and transparency of 0.2.