def radar_graph(radar_file, team): if team is not None: fig = team_radar_builder(radar_file, team) return fig else: fig = initial_figure_radar() fig.update_layout(margin=dict(l=80, r=80, b=30, t=55)) # Disable zoom. It just distorts and is not fine-tunable fig.layout.xaxis.fixedrange = True fig.layout.yaxis.fixedrange = True return fig
style={'textAlign': 'center'}), dbc.Card(dbc.Row([dbc.Col(c) for c in static_graph_controls], form=True), body=True, style={'background-color': "black"}), dbc.Row( [ dbc.Col( dbc.Card(children=[ dcc.Loading( id="loading-icon1", children=[ dcc.Graph( style={'background-color': "black"}, id="radar-graph", figure=initial_figure_radar(), config={ "modeBarButtonsToRemove": [ "toggleSpikelines", "pan2d", "autoScale2d", "resetScale2d", ] }, ) ], type="default", ) ]), ), dbc.Col( dbc.Card(children=[