Bokeh vẽ cột dọc bằng vbar(), hỗ trợ bottom, top để tạo cột không bắt đầu từ 0.
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=400)
fig.vbar(x=[2, 5, 9, 3], width=0.5, bottom=0, top=[2, 4, 6, 8], color="Cyan")
output_file('barplot.html')
show(fig)
Kết quả

Giải thích
xvị trí cột,topchiều cao,bottomđáy (mặc định 0).- Có thể dùng
ColumnDataSourcecho dữ liệu lớn.