似乎bokeh DataTable具有固定的整个表宽度?
当我将列的宽度设置为较大时,它将不起作用。下面的代码有4列width = 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)
刚刚发现DataTable
有一个属性width
(未记录)。所以
table = bmw.DataTable(source=source, columns=columns, height = 1000, width = 4000)
将工作
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句