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