Update main.py
parent
1ceea5c614
commit
74af4c4018
|
@ -172,7 +172,7 @@ def update_graph_2(min_value):
|
||||||
fig.update_layout(template="plotly_white")
|
fig.update_layout(template="plotly_white")
|
||||||
return fig
|
return fig
|
||||||
|
|
||||||
|
# 7a
|
||||||
@app.callback(Output("graph_69", "figure"), Input("graph_2", "relayoutData"))
|
@app.callback(Output("graph_69", "figure"), Input("graph_2", "relayoutData"))
|
||||||
def update_graph_2(selected_data):
|
def update_graph_2(selected_data):
|
||||||
if selected_data is None or (
|
if selected_data is None or (
|
||||||
|
@ -198,6 +198,7 @@ def update_graph_2(selected_data):
|
||||||
Input("slider_1", "value"),
|
Input("slider_1", "value"),
|
||||||
)
|
)
|
||||||
def update_graph_3_and_4(selected_data, sliderValue):
|
def update_graph_3_and_4(selected_data, sliderValue):
|
||||||
|
## 7b
|
||||||
# forcing update of x, y and cluster_df with the proper am
|
# forcing update of x, y and cluster_df with the proper am
|
||||||
X, y = make_blobs(
|
X, y = make_blobs(
|
||||||
n_samples=100 * sliderValue, centers=sliderValue, n_features=2, random_state=0
|
n_samples=100 * sliderValue, centers=sliderValue, n_features=2, random_state=0
|
||||||
|
|
Loading…
Reference in New Issue