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
< donut_chart | back to Gallery | histograms_chart >
from collections import OrderedDict
from bokeh.charts import Dot, show, output_file
# create some example data
xyvalues = OrderedDict(
    python=[2, 3, 7, 5, 26],
    pypy=[12, 33, 47, 15, 126],
    jython=[22, 43, 10, 25, 26],
)
# any of the following commented are also valid Dot inputs
#xyvalues = pd.DataFrame(xyvalues)
#xyvalues = list(xyvalues.values())
#xyvalues = np.array(list(xyvalues.values()))
output_file("dots.html")
dots = Dot(
    xyvalues, cat=['lists','loops','dicts', 'gen exp', 'exceptions'],
    title="Dots Example", ylabel='Performance', legend=True
)
show(dots)