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
2 1972 7.420710 13.214594 60.4 29.810221 10.558962 36.6 14.9 73.554520 1.2 63.664263 74.6 76.9 40.2 14.8 47.6 62.6 36.1
36 2006 46.790300 44.499331 61.6 60.172845 49.210914 63.0 18.6 78.686306 16.8 68.297594 69.6 85.9 44.1 40.8 77.4 81.2 49.8
32 2002 47.134658 41.132951 60.9 61.895128 50.552335 63.7 27.0 78.644244 18.7 68.829960 70.5 85.8 45.7 41.1 77.7 81.3 51.5
40 2010 48.730042 42.066721 61.3 59.010255 48.757988 62.5 17.6 79.618625 17.2 67.928106 69.0 85.0 43.1 40.2 77.0 81.7 49.3
16 1986 31.198719 37.240223 62.1 48.300678 46.532915 60.0 34.7 76.143015 13.9 65.982561 71.2 85.7 46.7 28.4 69.0 75.7 44.0
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.