How to fill the entire length of the column with the Dash DataTable

Hi Adam, I’m trying to fill the datatable with the entire column on the dashboard. Is it possible to this? I tried adding in my _table. Let’s say my data have about 1000 rows.

style_table = {'overflowX': 'auto', 'height':2000}

Hi @ngaunguyens
Welcome to the community.

I recommend you make a new topic to ask this question since this topic has been solved. But first, can you please clarify your question here. I’m not sure what you mean when you say trying to fill the datatable with the entire column on the dashboard.

Hi @adamschroeder

I found the solution from here (thanks for checking in! :D):

Setting DataTable max-height when using fixed headers - Dash Python - Plotly Community Forum

Previously, I had a problem in the picture below:

Adding:
‘’’
style_table={“height”: “90vh”, “maxHeight”: “90vh”}
‘’’

Got my dashtable to have this layout:

1 Like