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
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
18 1988 31.085087 39.398907 61.7 50.099811 46.764828 60.4 30.8 77.627662 13.9 67.144498 72.3 85.2 46.2 29.7 70.9 75.6 44.4
38 2008 47.570834 42.711730 60.7 59.305765 48.888027 62.4 17.8 79.196327 16.5 67.594028 70.2 85.2 43.3 40.7 77.2 81.7 49.4
21 1991 34.711837 33.679881 62.1 51.468805 47.224325 60.8 28.7 78.991246 14.0 66.241475 71.1 83.5 47.0 32.6 73.2 78.2 45.5
17 1987 31.486429 38.730675 61.7 50.209878 46.690466 60.2 32.4 76.963092 14.0 66.706031 72.0 85.5 46.5 30.4 70.1 76.4 43.9
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.