def plot_statewise_map(state): if state == "Total": return Graphs.draw_total_state_map(preprocessed_df) else: return graph.draw_statewise_map(data.df_us_cases, row=state)
label="Projected Deaths", tab_id="Deaths", tab_style={ "border-color": "#f2f3f4", "border-style": "solid", "border-bottom-style": "none", "cursor": "pointer" }), dbc.Tab( [ dcc.Loading( id="loading-2", type="default", children=dcc.Graph( id="State_map", figure=Graphs.draw_total_state_map( preprocessed_df))) ], label="State Maps", tab_id="Maps", tab_style={ "border-color": "#f2f3f4", "border-style": "solid", "border-bottom-style": "none", "cursor": "pointer" }) ], id="tabs", active_tab="Cases") ]) ]) ])