示例#1
0
     "display": "flex",
     "flexDirection": "column",
     "alignItems": "center",
 },
 children=[
     html.Header(
         style={
             "textAlign": "center",
             "paddingTop": "50px"
         },
         children=[html.H1("Corona Dashboard", style={"fontSize": 40})],
     ),
     html.Div(children=[dcc.Graph(figure=world_map)],
              style={"width": "80%"}),
     html.Div(
         children=[html.Div(children=[make_table(country_totals)])],
         style={"margin": "5% 10%"},
     ),
     html.Div(
         children=[
             dcc.Dropdown(
                 placeholder="Select a country",
                 id="country",
                 options=[{
                     "label": country,
                     "value": country
                 } for country in dropdown_options],
                 style={
                     "color": "#111111",
                     "margin": "0 auto",
                     "width": 320
示例#2
0
         "marginBottom": 100
     },
     children=[html.H1("Corona Dashboard", style={"fontSize": 40})],
 ),
 html.Div(
     style={
         "display": "grid",
         "gap": 50,
         "gridTemplateColumns": "repeat(4, 1fr)",
     },
     children=[
         html.Div(
             style={"grid-column": "span 3"},
             children=[dcc.Graph(figure=bubble_map)],
         ),
         html.Div(children=[make_table(countries_df)]),
     ],
 ),
 html.Div(
     style={
         "display": "grid",
         "gap": 50,
         "gridTemplateColumns": "repeat(4, 1fr)",
     },
     children=[
         html.Div(children=[dcc.Graph(figure=bars_graph)]),
         html.Div(
             style={"grid-column": "span 3"},
             children=[
                 dcc.Dropdown(
                     style={
示例#3
0
     style={
         "display": "grid",
         "gap": 50,
         "gridTemplateColumns": "repeat(5, 1fr)",
         "margin": "5% 0"
     },
     children=[
         # html.Div(children=[dcc.Graph(figure=bubble_map)]),
         html.Div(
             style={"grid-column": "span 3"},
             children=[dcc.Graph(figure=bubble_map)],
         ),
         html.Div(style={
             "grid-column": "span 2",
         },
                  children=[make_table(countries_df)]),
     ],
 ),
 html.Div(
     style={
         "display": "grid",
         "gap": 50,
         "gridTemplateColumns": "repeat(5, 1fr)",
     },
     children=[
         html.Div(
             style={"grid-column": "span 3"},
             children=[
                 dcc.Dropdown(
                     style={
                         "width": 320,