Ejemplo n.º 1
0
     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([
Ejemplo n.º 2
0
def confirmed_cases_callback(state):
    fig = cases_chart(state)
    return [fig]
Ejemplo n.º 3
0
def mobile_confirmed_cases_callback(state="US"):
    fig = cases_chart(state)
    return [fig]