From 289a6bd611bcd905024323717a5789db14c4aaf1 Mon Sep 17 00:00:00 2001 From: marcgauch <34353267+marcgauch@users.noreply.github.com> Date: Sat, 3 Jun 2023 14:36:54 +0200 Subject: [PATCH] removed first tab --- dashboard8/main.py | 73 ---------------------------------------------- 1 file changed, 73 deletions(-) diff --git a/dashboard8/main.py b/dashboard8/main.py index 626673e..07dc3ab 100644 --- a/dashboard8/main.py +++ b/dashboard8/main.py @@ -47,59 +47,6 @@ app.layout = html.Div( dcc.Tabs( id="tabs", children=[ - dcc.Tab( - label="Tab One", - children=[ - html.Div( - [ - dbc.Row( - [ - dbc.Col( - [ - dcc.Dropdown( - options=[ - "red", - "green", - "blue", - ], - value="red", - id="color", - multi=False, - ) - ], - width=6, - ), - dbc.Col( - [ - dcc.Slider( - min=math.floor( - df["y"].min() - ), - max=math.ceil( - df["y"].max() - ), - id="min_value", - ) - ], - width=6, - ), - ] - ), - dbc.Row( - [ - dbc.Col( - [dcc.Graph(id="graph_1")], width=6 - ), - dbc.Col( - [dcc.Graph(id="graph_2")], width=6 - ), - ] - ), - ], - style={"margin": "100px 25px 25px 25px"}, - ), - ], - ), dcc.Tab( label="Tab Two", id="tab_2_graphs", @@ -216,26 +163,6 @@ def update_selected_data(selected_data): ] return cluster_dff - -@app.callback(Output("graph_1", "figure"), Input("color", "value")) -def update_graph_1(dropdown_value_color): - fig = px.histogram(df, x="y", color_discrete_sequence=[dropdown_value_color]) - fig.update_layout(template="plotly_white") - return fig - - -@app.callback(Output("graph_2", "figure"), Input("min_value", "value")) -def update_graph_2(min_value): - if min_value: - dff = df[df["y"] > min_value] - else: - dff = df - - fig = px.scatter(dff, x="x", y="y") - fig.update_layout(template="plotly_white") - return fig - - @app.callback( Output("graph_3", "figure"), Output("graph_4", "figure"),