Arts-of-coding commited on
Commit
6c1dada
·
verified ·
1 Parent(s): 393bc94

Update pages/corg.py

Browse files
Files changed (1) hide show
  1. pages/corg.py +4 -4
pages/corg.py CHANGED
@@ -270,7 +270,7 @@ tab4_content = html.Div([
270
  ])
271
 
272
  # Define the tabs layout
273
- app.layout = html.Div([
274
  dcc.Tabs(id='tabs', style= {'width': 600,
275
  'font-size': '100%',
276
  'height': 50}, value='tab1',children=[
@@ -283,7 +283,7 @@ app.layout = html.Div([
283
  ])
284
 
285
  # Define the circular callback
286
- @app.callback(
287
  Output("min-slider-1", "value"),
288
  Output("max-slider-1", "value"),
289
  Output("min-slider-2", "value"),
@@ -300,7 +300,7 @@ app.layout = html.Div([
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
- @app.callback(
304
  Output('range-slider-1', 'value'),
305
  Output('range-slider-2', 'value'),
306
  Output('range-slider-3', 'value'),
@@ -314,7 +314,7 @@ def circular_callback(min_1, max_1, min_2, max_2, min_3, max_3):
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
- @app.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'),
 
270
  ])
271
 
272
  # Define the tabs layout
273
+ layout = html.Div([
274
  dcc.Tabs(id='tabs', style= {'width': 600,
275
  'font-size': '100%',
276
  'height': 50}, value='tab1',children=[
 
283
  ])
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"),
 
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'),
 
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'),