diff --git a/rattail_dash/dashapp/sample.py b/rattail_dash/dashapp/sample.py index 625ba3c..e99a167 100644 --- a/rattail_dash/dashapp/sample.py +++ b/rattail_dash/dashapp/sample.py @@ -82,9 +82,11 @@ def sample_dash_app(config): # 'color': colors['text'], }), - dcc.DatePickerSingle(id='mydatepicker', + html.Div([ + dcc.DatePickerSingle(id='mydatepicker', initial_visible_month=date, date=date.strftime('%Y-%m-%d')), + ], style={'textAlign': 'center'}), dcc.Graph( id='example-graph',