Hi,
I am trying to create a multi-tab Dasha app.
I can get a table to work in its own script. However, I don’t know how to embed a table under a graph.
e.g.
def display_content(value):
if value==1:
return html.Div([
dcc.Graph(
id='DQC',
figure={
'data': [
go.Scatter(
x=df[df['study_id'] == i]['gt_date'],
y=df[df['study_id'] == i]['DQC'],
text=df[df['study_id'] == i]['site_id'],
mode='markers',
opacity=0.7,
marker={
'size': 15,
'line': {'width': 0.5, 'color': 'white'}
},
name=i
) for i in df.study_id.unique()
],
'layout': go.Layout(
xaxis={'title': 'gt_date', 'tickformat':'%b-%Y'},
yaxis={'title': 'DQC'},
margin={'l': 40, 'b': 40, 't': 10, 'r': 10},
legend={'x': 0, 'y': 1},
hovermode='closest'
)
}
)
])
THis is one tab , how would I put a table in here with the graph ?
Thanks.,