Hello, I have a problem with running DataTable embedded with any other elements on the same level.
I want to place 2 or more elements on the same level, I tried a lot of ways, but I just can not place the table and the graph on the same level horizontally.
Such a problem has arisen so far only with DataTable, because it does not allow explicitly setting style = {‘display’: ‘inline-block’}
my code:
html.Div([
dash_table.DataTable(
data=df_ROC_AUC.to_dict('records'),
columns=[{'id': c, 'name': c} for c in df_ROC_AUC.columns],
style_header={'backgroundColor': 'rgb(252, 225, 70)',
'color': 'Black'},
style_cell={
'backgroundColor': 'rgb(255, 235, 122)',
'color': 'Black'
},
)],
style={'width': '40%', 'display': 'inline-block',
'background': '#efefef',
"border":"1px solid #939598"}),
dcc.Graph(id='VR_graph',
style={'width': '25%', 'display': 'inline-block'})