From 0c96613b24bee9af6edb87247cc3146217688fa6 Mon Sep 17 00:00:00 2001 From: Arpan Ghosh <26424944+arpanghosh8453@users.noreply.github.com> Date: Fri, 28 Jul 2023 13:49:16 -0400 Subject: [PATCH] Sleep chart added --- src/app.py | 91 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 78 insertions(+), 13 deletions(-) diff --git a/src/app.py b/src/app.py index 58b7231..194097b 100644 --- a/src/app.py +++ b/src/app.py @@ -13,6 +13,7 @@ import dash_dangerously_set_inner_html # %% app = dash.Dash(__name__) +app.title = "Fitbit Wellness Report" server = app.server app.layout = html.Div(children=[ @@ -117,6 +118,15 @@ app.layout = html.Div(children=[ ), html.Div(id='spo2_table', style={'max-width': '1200px', 'margin': 'auto', 'font-weight': 'bold'}, children=[]), html.Div(style={"height": '40px'}), + html.H4("Sleep", style={'font-weight': 'bold'}), + html.H6("Fitbit estimates sleep stages (awake, REM, light sleep and deep sleep) and sleep duration based on a person's movement and heart-rate patterns. The National Sleep Foundation recommends 7-9 hours of sleep per night for adults"), + dcc.Graph( + id='graph_sleep', + figure=px.bar(), + config= {'displaylogo': False} + ), + html.Div(id='sleep_table', style={'max-width': '1200px', 'margin': 'auto', 'font-weight': 'bold'}, children=[]), + html.Div(style={"height": '40px'}), html.Div(className="hidden-print", style={'margin': 'auto', 'text-align': 'center'}, children=[ dash_dangerously_set_inner_html.DangerouslySetInnerHTML( '''