似乎bokeh DataTable有一个固定的整个表宽?
当我将列的宽度设置为很大时,它将无法工作。下面的代码有4列宽度= 1000,但它只显示4列的宽度要小得多。
此外,虽然我可以移动Chrome输出html中每个列的边界,但我不能用html移动表的右端--整个表的宽度似乎是固定的。
有办法有宽的桌子吗?
import bokeh.models.widgets as bmw
source = bokeh.models.ColumnDataSource(df)
numformatter = bmw.NumberFormatter()
numformatter.format = '0.00'
columns = [TableColumn(field=c, title=c, width = 1000, formatter=numformatter) for c in df]
table = bmw.DataTable(source=source, columns=columns, height = 1000)发布于 2017-02-16 13:08:19
刚刚发现DataTable有一个属性width (没有文档说明)。所以
table = bmw.DataTable(source=source, columns=columns, height = 1000, width = 4000)
行得通
https://stackoverflow.com/questions/42261593
复制相似问题