dbc.Card( dbc.CardBody([ html.Div( id="confirmed-cases-chart-title", # children="US Confirmed Cases", className="bottom-chart-h1-title", ), html.Div( "Last 30 days", className="bottom-chart-h2-title", ), html.Div( dcc.Loading( dcc.Graph( id="confirmed-cases-timeline", figure=cases_chart(), config={"responsive": False}, style={"height": "20vh"}, className= 'top-bottom-left-chart-figure"', ), ), id="chart-container", ), ]), ), className="top-bottom-left-chart", width=4, ), # CHART 2 dbc.Col( dbc.Card( dbc.CardBody([
def confirmed_cases_callback(state): fig = cases_chart(state) return [fig]
def mobile_confirmed_cases_callback(state="US"): fig = cases_chart(state) return [fig]