Luidgi
June 18, 2018, 9:23am
1
Hello!
I noticed some trouble with table:
wnen Im trying to show table, table shows cells with only one word, for example “City” or “Country”,
but if i have a cell with two or more words, for example, “Player`s name”, i cant see it.
Is it possible to see all data?
bcd
June 19, 2018, 9:28am
2
Hey @Luidgi
Perhaps you’re not entering the cell values correctly? The below code seems to display all cells for me (example based on this one ).
import plotly.plotly as py
import plotly.graph_objs as go
trace0 = go.Table(
type = 'table',
columnorder = [1,2],
columnwidth = [80,400],
header = dict(
values = [['<b>Row<b>'],
['<b>DESCRIPTION</b>']],
line = dict(color = '#506784'),
fill = dict(color = '#119DFF'),
align = ['left','center'],
font = dict(color = 'white', size = 12),
height = 40
),
cells = dict(
values = [["a","b","c"],["Word","Multiple Words","Many Many Words"]],
line = dict(color = '#506784'),
fill = dict(color = ['#25FEFD', 'white']),
align = ['left', 'center'],
font = dict(color = '#506784', size = 12),
height = 30
))
data = [trace0]
py.iplot(data)
1 Like
Luidgi
June 19, 2018, 11:29am
3
Hm, its working in Jupyther, but still don
t work in browser.
I`ll try to find the problem.
Anyway, thanks!