Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

docs - update dash table docs so that folks don't run into issues like these: Using fixed_rows together with fixed_columns not working in this example #648

Open
@evorta

Description

@evorta

If you run the below sample, I can't get the display to show the fixed columns with the fixed rows.

My display with Safari, the fixed row on the left floats to the top and then a new table is below with the rest of the data.

Any ideas would be great, many thanks dash team.

import dash
import dash_table
import pandas as pd

df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')

app = dash.Dash(name)

app.layout = dash_table.DataTable(
id='table',
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict("rows"),
fixed_rows={'headers': True, 'data': 0 },
fixed_columns={'headers': True, 'data': 1 },
style_cell={'width': '400px'},
style_table={
'width': '100%',
'height': '100%',
'minWidth': '100%',
'minHeight': '100%',
}
)

if name == 'main':
app.run_server(debug=False, port=9999)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions