斯蒂芬大帝
扩展对问题的评论:from bokeh.io import showfrom bokeh.models import ColumnDataSourcefrom bokeh.plotting import figureds = ColumnDataSource(dict(x=[1, 2, 3], y=['a', 'b', 'c']))p = figure(y_range=sorted(set(ds.data['y'])))p.hbar(y='y', height=0.8, left=0, right='x', source=ds)p.text(y='y', text='y', text_baseline='middle', x=0, x_offset=10, color='white', source=ds)show(p)