Arts-of-coding commited on
Commit
1cfd6ee
·
verified ·
1 Parent(s): 110f4af

Update pages/corg.py

Browse files
Files changed (1) hide show
  1. pages/corg.py +26 -28
pages/corg.py CHANGED
@@ -285,54 +285,52 @@ layout = html.Div([
285
 
286
  # Define the circular callback
287
  @callback(
288
- Output("min-slider-1", "value", allow_duplicate=True),
289
- Output("max-slider-1", "value", allow_duplicate=True),
290
- Output("min-slider-2", "value", allow_duplicate=True),
291
- Output("max-slider-2", "value", allow_duplicate=True),
292
- Output("min-slider-3", "value", allow_duplicate=True),
293
- Output("max-slider-3", "value", allow_duplicate=True),
294
  Input("min-slider-1", "value"),
295
  Input("max-slider-1", "value"),
296
  Input("min-slider-2", "value"),
297
  Input("max-slider-2", "value"),
298
  Input("min-slider-3", "value"),
299
  Input("max-slider-3", "value"),
300
- prevent_initial_call=True
301
  )
302
  def circular_callback(min_1, max_1, min_2, max_2, min_3, max_3):
303
  return min_1, max_1, min_2, max_2, min_3, max_3
304
 
305
  @callback(
306
- Output('range-slider-1', 'value', allow_duplicate=True),
307
- Output('range-slider-2', 'value', allow_duplicate=True),
308
- Output('range-slider-3', 'value', allow_duplicate=True),
309
  Input('min-slider-1', 'value'),
310
  Input('max-slider-1', 'value'),
311
  Input('min-slider-2', 'value'),
312
  Input('max-slider-2', 'value'),
313
  Input('min-slider-3', 'value'),
314
- Input('max-slider-3', 'value'),
315
- prevent_initial_call=True
316
  )
317
  def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
318
  return [min_1, max_1], [min_2, max_2], [min_3, max_3]
319
 
320
  @callback(
321
- Output(component_id='my-graph', component_property='figure', allow_duplicate=True),
322
- Output(component_id='pie-graph', component_property='figure', allow_duplicate=True),
323
- Output(component_id='scatter-plot', component_property='figure', allow_duplicate=True),
324
- Output(component_id='scatter-plot-2', component_property='figure', allow_duplicate=True),
325
- Output(component_id='scatter-plot-3', component_property='figure', allow_duplicate=True),
326
- Output(component_id='scatter-plot-4', component_property='figure', allow_duplicate=True), # Add this new scatter plot
327
- Output(component_id='scatter-plot-5', component_property='figure', allow_duplicate=True),
328
- Output(component_id='scatter-plot-6', component_property='figure', allow_duplicate=True),
329
- Output(component_id='scatter-plot-7', component_property='figure', allow_duplicate=True),
330
- Output(component_id='scatter-plot-8', component_property='figure', allow_duplicate=True),
331
- Output(component_id='scatter-plot-9', component_property='figure', allow_duplicate=True),
332
- Output(component_id='scatter-plot-10', component_property='figure', allow_duplicate=True),
333
- Output(component_id='scatter-plot-11', component_property='figure', allow_duplicate=True),
334
- Output(component_id='scatter-plot-12', component_property='figure', allow_duplicate=True),
335
- Output(component_id='my-graph2', component_property='figure', allow_duplicate=True),
336
  Input(component_id='dpdn2', component_property='value'),
337
  Input(component_id='dpdn3', component_property='value'),
338
  Input(component_id='dpdn4', component_property='value'),
@@ -342,7 +340,7 @@ def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
342
  Input(component_id='range-slider-1', component_property='value'),
343
  Input(component_id='range-slider-2', component_property='value'),
344
  Input(component_id='range-slider-3', component_property='value'),
345
- prevent_initial_call=True
346
  )
347
 
348
  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,
 
285
 
286
  # Define the circular callback
287
  @callback(
288
+ Output("min-slider-1", "value"),
289
+ Output("max-slider-1", "value"),
290
+ Output("min-slider-2", "value"),
291
+ Output("max-slider-2", "value"),
292
+ Output("min-slider-3", "value"),
293
+ Output("max-slider-3", "value"),
294
  Input("min-slider-1", "value"),
295
  Input("max-slider-1", "value"),
296
  Input("min-slider-2", "value"),
297
  Input("max-slider-2", "value"),
298
  Input("min-slider-3", "value"),
299
  Input("max-slider-3", "value"),
 
300
  )
301
  def circular_callback(min_1, max_1, min_2, max_2, min_3, max_3):
302
  return min_1, max_1, min_2, max_2, min_3, max_3
303
 
304
  @callback(
305
+ Output('range-slider-1', 'value'),
306
+ Output('range-slider-2', 'value'),
307
+ Output('range-slider-3', 'value'),
308
  Input('min-slider-1', 'value'),
309
  Input('max-slider-1', 'value'),
310
  Input('min-slider-2', 'value'),
311
  Input('max-slider-2', 'value'),
312
  Input('min-slider-3', 'value'),
313
+ Input('max-slider-3', 'value'),
 
314
  )
315
  def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
316
  return [min_1, max_1], [min_2, max_2], [min_3, max_3]
317
 
318
  @callback(
319
+ Output(component_id='my-graph', component_property='figure'),
320
+ Output(component_id='pie-graph', component_property='figure'),
321
+ Output(component_id='scatter-plot', component_property='figure'),
322
+ Output(component_id='scatter-plot-2', component_property='figure'),
323
+ Output(component_id='scatter-plot-3', component_property='figure'),
324
+ Output(component_id='scatter-plot-4', component_property='figure'), # Add this new scatter plot
325
+ Output(component_id='scatter-plot-5', component_property='figure'),
326
+ Output(component_id='scatter-plot-6', component_property='figure'),
327
+ Output(component_id='scatter-plot-7', component_property='figure'),
328
+ Output(component_id='scatter-plot-8', component_property='figure'),
329
+ Output(component_id='scatter-plot-9', component_property='figure'),
330
+ Output(component_id='scatter-plot-10', component_property='figure'),
331
+ Output(component_id='scatter-plot-11', component_property='figure'),
332
+ Output(component_id='scatter-plot-12', component_property='figure'),
333
+ Output(component_id='my-graph2', component_property='figure'),
334
  Input(component_id='dpdn2', component_property='value'),
335
  Input(component_id='dpdn3', component_property='value'),
336
  Input(component_id='dpdn4', component_property='value'),
 
340
  Input(component_id='range-slider-1', component_property='value'),
341
  Input(component_id='range-slider-2', component_property='value'),
342
  Input(component_id='range-slider-3', component_property='value'),
343
+
344
  )
345
 
346
  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,