Simplify initial figures for sample app

This commit is contained in:
Lance Edgar 2021-12-16 22:45:42 -06:00
parent 486fdf6c00
commit 636366bfac

View file

@ -55,15 +55,6 @@ def sample_dash_app(config):
# this date will be initially displayed, by default
date = app.localtime().date()
empty_frame = pd.DataFrame(columns=['end_time',
'terminal_id',
'subtotal'])
fig = px.bar(empty_frame, x="terminal_id", y="subtotal",
barmode="group")
fig2 = px.line(empty_frame, x='end_time', y='subtotal')
dashapp.layout = html.Div([
html.H1("Hello {}".format(config.app_title()),
style={
@ -97,12 +88,12 @@ def sample_dash_app(config):
dcc.Graph(
id='example-graph',
figure=fig
figure=px.bar(),
),
dcc.Graph(
id='example-graph2',
figure=fig2
figure=px.line(),
),
],