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
0 1970 4.229798 11.921005 59.7 29.088363 9.064439 35.3 13.6 74.535328 0.8 65.570923 73.8 77.1 38.0 13.8 44.4 68.4 36.8
5 1975 18.333162 19.134048 60.9 34.449902 19.686249 41.5 19.8 72.801854 3.2 61.647206 75.0 78.9 40.7 19.1 54.5 63.0 37.7
11 1981 31.318655 29.841694 63.3 45.249512 39.266230 56.4 34.8 75.845123 11.6 65.838322 73.9 84.1 43.2 25.7 66.9 74.7 44.6
1 1971 5.452797 12.003106 59.9 29.394403 9.503187 35.5 13.6 74.149204 1.0 64.556485 73.9 75.5 39.0 14.9 46.2 65.5 36.2
3 1973 9.653602 14.791613 60.2 31.147915 12.804602 38.4 16.4 73.501814 1.6 62.941502 74.9 77.4 40.9 16.5 50.4 64.3 36.4
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.