It was possible before to scroll X my datatable. But now (maybe I ve done something wrong) the data frame (too many column to fully appear in the body is blocked. I manage to make appear a scroll but it is not “touchable” :
import dash
import dash_html_components as html
import dash_table
app = dash.Dash(__name__)
app.layout = html.Div([
dash_table.DataTable(
columns=[{
'name': 'Column {}'.format(i),
'id': 'column-{}'.format(i)
} for i in range(1,15)],
data=[
{'column-{}'.format(i): (j + (i-1)*5) for i in range(1, 15)}
for j in range(5)
],
style_table={'overflowX': 'scroll'},
)], style={'width':500})
if __name__ == '__main__':
app.run_server(debug=True)
OK thanks, I was using dash_table_experiments and there is no option style_table={‘overflowX’: ‘scroll’}
Is there a way to pass the same option to dash_table_experiments ?
because when I use dash_table my dataframe do not appear anymore. My df is ok but once it is put back in data by the callback is doesn’t appear well.
The oart of code
dcc.Dropdown(
id=‘field-dropdown’,
options=[{‘label’: df, ‘value’: df} for df in dataframes],
value=‘MY_DF’,
clearable=False
),
Hey. Is this question solved yet? I am also experiencing the same issue. Datatable imported from dash-table-experiments do not allow horizontal scrolling function in Chrome. However, i found it works in Firefox. Solutions would be appreciated.