Spaces:
Sleeping
Sleeping
Update pages/corg.py
Browse files- pages/corg.py +45 -45
pages/corg.py
CHANGED
@@ -284,61 +284,61 @@ layout = html.Div([
|
|
284 |
|
285 |
# Define the circular callback
|
286 |
@callback(
|
287 |
-
Output("min-slider-1", "value"),
|
288 |
-
Output("max-slider-1", "value"),
|
289 |
-
Output("min-slider-2", "value"),
|
290 |
-
Output("max-slider-2", "value"),
|
291 |
-
Output("min-slider-3", "value"),
|
292 |
-
Output("max-slider-3", "value"),
|
293 |
-
Input("min-slider-1", "value"),
|
294 |
-
Input("max-slider-1", "value"),
|
295 |
-
Input("min-slider-2", "value"),
|
296 |
-
Input("max-slider-2", "value"),
|
297 |
-
Input("min-slider-3", "value"),
|
298 |
-
Input("max-slider-3", "value"
|
299 |
)
|
300 |
def circular_callback(min_1, max_1, min_2, max_2, min_3, max_3):
|
301 |
return min_1, max_1, min_2, max_2, min_3, max_3
|
302 |
|
303 |
@callback(
|
304 |
-
Output('range-slider-1', 'value'),
|
305 |
-
Output('range-slider-2', 'value'),
|
306 |
-
Output('range-slider-3', 'value'),
|
307 |
-
Input('min-slider-1', 'value'),
|
308 |
-
Input('max-slider-1', 'value'),
|
309 |
-
Input('min-slider-2', 'value'),
|
310 |
-
Input('max-slider-2', 'value'),
|
311 |
-
Input('min-slider-3', 'value'),
|
312 |
-
Input('max-slider-3', 'value'
|
313 |
)
|
314 |
def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
|
315 |
return [min_1, max_1], [min_2, max_2], [min_3, max_3]
|
316 |
|
317 |
@callback(
|
318 |
-
Output(component_id='my-graph', component_property='figure'),
|
319 |
-
Output(component_id='pie-graph', component_property='figure'),
|
320 |
-
Output(component_id='scatter-plot', component_property='figure'),
|
321 |
-
Output(component_id='scatter-plot-2', component_property='figure'),
|
322 |
-
Output(component_id='scatter-plot-3', component_property='figure'),
|
323 |
-
Output(component_id='scatter-plot-4', component_property='figure'), # Add this new scatter plot
|
324 |
-
Output(component_id='scatter-plot-5', component_property='figure'),
|
325 |
-
Output(component_id='scatter-plot-6', component_property='figure'),
|
326 |
-
Output(component_id='scatter-plot-7', component_property='figure'),
|
327 |
-
Output(component_id='scatter-plot-8', component_property='figure'),
|
328 |
-
Output(component_id='scatter-plot-9', component_property='figure'),
|
329 |
-
Output(component_id='scatter-plot-10', component_property='figure'),
|
330 |
-
Output(component_id='scatter-plot-11', component_property='figure'),
|
331 |
-
Output(component_id='scatter-plot-12', component_property='figure'),
|
332 |
-
Output(component_id='my-graph2', component_property='figure'),
|
333 |
-
Input(component_id='dpdn2', component_property='value'),
|
334 |
-
Input(component_id='dpdn3', component_property='value'),
|
335 |
-
Input(component_id='dpdn4', component_property='value'),
|
336 |
-
Input(component_id='dpdn5', component_property='value'),
|
337 |
-
Input(component_id='dpdn6', component_property='value'),
|
338 |
-
Input(component_id='dpdn7', component_property='value'),
|
339 |
-
Input(component_id='range-slider-1', component_property='value'),
|
340 |
-
Input(component_id='range-slider-2', component_property='value'),
|
341 |
-
Input(component_id='range-slider-3', component_property='value'
|
342 |
)
|
343 |
|
344 |
def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chosen, condition2_chosen, condition3_chosen, range_value_1, range_value_2, range_value_3): #batch_chosen,
|
|
|
284 |
|
285 |
# Define the circular callback
|
286 |
@callback(
|
287 |
+
Output("min-slider-1", "value", allow_duplicate=True),
|
288 |
+
Output("max-slider-1", "value", allow_duplicate=True),
|
289 |
+
Output("min-slider-2", "value", allow_duplicate=True),
|
290 |
+
Output("max-slider-2", "value", allow_duplicate=True),
|
291 |
+
Output("min-slider-3", "value", allow_duplicate=True),
|
292 |
+
Output("max-slider-3", "value", allow_duplicate=True),
|
293 |
+
Input("min-slider-1", "value", prevent_initial_call = True),
|
294 |
+
Input("max-slider-1", "value", prevent_initial_call = True),
|
295 |
+
Input("min-slider-2", "value", prevent_initial_call = True),
|
296 |
+
Input("max-slider-2", "value", prevent_initial_call = True),
|
297 |
+
Input("min-slider-3", "value", prevent_initial_call = True),
|
298 |
+
Input("max-slider-3", "value", prevent_initial_call = True)
|
299 |
)
|
300 |
def circular_callback(min_1, max_1, min_2, max_2, min_3, max_3):
|
301 |
return min_1, max_1, min_2, max_2, min_3, max_3
|
302 |
|
303 |
@callback(
|
304 |
+
Output('range-slider-1', 'value', allow_duplicate=True),
|
305 |
+
Output('range-slider-2', 'value', allow_duplicate=True),
|
306 |
+
Output('range-slider-3', 'value', allow_duplicate=True),
|
307 |
+
Input('min-slider-1', 'value', prevent_initial_call = True),
|
308 |
+
Input('max-slider-1', 'value', prevent_initial_call = True),
|
309 |
+
Input('min-slider-2', 'value', prevent_initial_call = True),
|
310 |
+
Input('max-slider-2', 'value', prevent_initial_call = True),
|
311 |
+
Input('min-slider-3', 'value', prevent_initial_call = True),
|
312 |
+
Input('max-slider-3', 'value', prevent_initial_call = True)
|
313 |
)
|
314 |
def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
|
315 |
return [min_1, max_1], [min_2, max_2], [min_3, max_3]
|
316 |
|
317 |
@callback(
|
318 |
+
Output(component_id='my-graph', component_property='figure', allow_duplicate=True),
|
319 |
+
Output(component_id='pie-graph', component_property='figure', allow_duplicate=True),
|
320 |
+
Output(component_id='scatter-plot', component_property='figure', allow_duplicate=True),
|
321 |
+
Output(component_id='scatter-plot-2', component_property='figure', allow_duplicate=True),
|
322 |
+
Output(component_id='scatter-plot-3', component_property='figure', allow_duplicate=True),
|
323 |
+
Output(component_id='scatter-plot-4', component_property='figure', allow_duplicate=True), # Add this new scatter plot
|
324 |
+
Output(component_id='scatter-plot-5', component_property='figure', allow_duplicate=True),
|
325 |
+
Output(component_id='scatter-plot-6', component_property='figure', allow_duplicate=True),
|
326 |
+
Output(component_id='scatter-plot-7', component_property='figure', allow_duplicate=True),
|
327 |
+
Output(component_id='scatter-plot-8', component_property='figure', allow_duplicate=True),
|
328 |
+
Output(component_id='scatter-plot-9', component_property='figure', allow_duplicate=True),
|
329 |
+
Output(component_id='scatter-plot-10', component_property='figure', allow_duplicate=True),
|
330 |
+
Output(component_id='scatter-plot-11', component_property='figure', allow_duplicate=True),
|
331 |
+
Output(component_id='scatter-plot-12', component_property='figure', allow_duplicate=True),
|
332 |
+
Output(component_id='my-graph2', component_property='figure', allow_duplicate=True),
|
333 |
+
Input(component_id='dpdn2', component_property='value', prevent_initial_call = True),
|
334 |
+
Input(component_id='dpdn3', component_property='value', prevent_initial_call = True),
|
335 |
+
Input(component_id='dpdn4', component_property='value', prevent_initial_call = True),
|
336 |
+
Input(component_id='dpdn5', component_property='value', prevent_initial_call = True),
|
337 |
+
Input(component_id='dpdn6', component_property='value', prevent_initial_call = True),
|
338 |
+
Input(component_id='dpdn7', component_property='value', prevent_initial_call = True),
|
339 |
+
Input(component_id='range-slider-1', component_property='value', prevent_initial_call = True),
|
340 |
+
Input(component_id='range-slider-2', component_property='value', prevent_initial_call = True),
|
341 |
+
Input(component_id='range-slider-3', component_property='value', prevent_initial_call = True)
|
342 |
)
|
343 |
|
344 |
def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chosen, condition2_chosen, condition3_chosen, range_value_1, range_value_2, range_value_3): #batch_chosen,
|