Bokeh vẽ cột ngang bằng hbar(), tham số y, left, right, height.
Cài đặt
pip3 install bokeh
conda install bokeh
Ví dụ
from bokeh.plotting import figure, output_file, show
fig = figure(plot_width=400, plot_height=200)
fig.hbar(y=[2, 5, 9, 1], height=1, left=0, right=[1, 6, 3, 9], color="Cyan")
output_file('bar_plot.html')
show(fig)
Kết quả

Giải thích
yvị trí trục tung,rightchiều dài,leftđiểm bắt đầu (mặc định 0).- Phù hợp khi nhãn danh mục dài, dễ đọc hơn cột dọc.