Step#

import hvplot.pandas  # noqa

step can be used pretty much anytime line might be used and has many of the same options available.

from bokeh.sampledata.degrees import data as deg
deg.sample(n=5)
Year Agriculture Architecture Art and Performance Biology Business Communications and Journalism Computer Science Education Engineering English Foreign Languages Health Professions Math and Statistics Physical Sciences Psychology Public Administration Social Sciences and History
37 2007 47.605026 43.100459 61.4 59.411993 49.000459 62.5 17.6 78.721413 16.8 67.874923 70.2 85.4 44.1 40.7 77.1 82.1 49.3
29 1999 42.887202 38.631529 59.2 58.228823 49.810208 61.2 28.1 75.838162 18.6 67.820221 70.9 83.5 47.8 40.2 76.5 81.1 51.2
20 1990 32.703444 40.824047 62.6 50.818094 47.200851 60.8 29.4 78.866859 14.1 66.921902 71.2 83.9 47.3 31.6 72.6 77.6 45.1
8 1978 27.146192 25.849240 62.5 40.112496 30.527519 49.9 28.1 73.192821 8.4 63.619122 74.3 81.9 41.6 22.5 61.3 71.5 41.8
23 1993 34.946832 35.777159 60.2 51.124844 47.639332 58.7 28.5 77.267312 14.9 65.730950 70.0 82.4 46.4 33.6 73.1 78.0 46.1
deg.hvplot.step(x='Year', y=['Art and Performance', 'Business', 'Biology', 'Education', 'Computer Science'], 
                value_label='% of Degrees Earned by Women', legend='top', height=500, width=620)
This web page was generated from a Jupyter notebook and not all interactivity will work on this website.