bokeh.models Interfacebokeh.models.annotationsbokeh.models.axesbokeh.models.callbacksbokeh.models.formattersbokeh.models.glyphsbokeh.models.gridsbokeh.models.map_plotsbokeh.models.mappersbokeh.models.markersbokeh.models.plotsbokeh.models.rangesbokeh.models.renderersbokeh.models.sourcesbokeh.models.tickersbokeh.models.toolsbokeh.models.widgetbokeh.models.widgets.buttonsbokeh.models.widgets.dialogsbokeh.models.widgets.groupsbokeh.models.widgets.iconsbokeh.models.widgets.inputsbokeh.models.widgets.layoutsbokeh.models.widgets.markupsbokeh.models.widgets.panelsbokeh.models.widgets.tablesbokeh.validation Package
bokeh.plotting Interfacebokeh.charts Interface
< stacked_bar_chart | back to Gallery | stocks_timeseries_chart >
from collections import OrderedDict
from bokeh.charts import Step, show, output_file
xyvalues = OrderedDict(
    python=[2, 3, 7, 5, 26, 81, 44, 93, 94, 105, 66, 67, 90, 83],
    pypy=[12, 20, 47, 15, 126, 121, 144, 333, 354, 225, 276, 287, 270, 230],
    jython=[22, 43, 70, 75, 76, 101, 114, 123, 194, 215, 201, 227, 139, 160],
)
# any of the following commented are also valid Step inputs
#xyvalues = pd.DataFrame(xyvalues)
#xyvalues = list(xyvalues.values())
#xyvalues = np.array(list(xyvalues.values()))
output_file("steps.html", title="line.py example")
chart = Step(xyvalues, title="Steps", ylabel='measures', legend='top_left')
show(chart)