Spaces:
Running
Running
Arts-of-coding
commited on
Update pages/d101110xflex.py
Browse files- pages/d101110xflex.py +28 -27
pages/d101110xflex.py
CHANGED
@@ -271,6 +271,7 @@ tab4_content = html.Div([
|
|
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=[
|
@@ -284,54 +285,54 @@ layout = html.Div([
|
|
284 |
|
285 |
# Define the circular callback
|
286 |
@callback(
|
287 |
-
Output("min-slider_db2-1", "value"
|
288 |
-
Output("max-slider_db2-1", "value"
|
289 |
-
Output("min-slider_db2-2", "value"
|
290 |
-
Output("max-slider_db2-2", "value"
|
291 |
-
Output("min-slider_db2-3", "value"
|
292 |
-
Output("max-slider_db2-3", "value"
|
293 |
Input("min-slider_db2-1", "value"),
|
294 |
Input("max-slider_db2-1", "value"),
|
295 |
Input("min-slider_db2-2", "value"),
|
296 |
Input("max-slider_db2-2", "value"),
|
297 |
Input("min-slider_db2-3", "value"),
|
298 |
Input("max-slider_db2-3", "value"),
|
299 |
-
|
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_db2-1', 'value'
|
306 |
-
Output('range-slider_db2-2', 'value'
|
307 |
-
Output('range-slider_db2-3', 'value'
|
308 |
Input('min-slider_db2-1', 'value'),
|
309 |
Input('max-slider_db2-1', 'value'),
|
310 |
Input('min-slider_db2-2', 'value'),
|
311 |
Input('max-slider_db2-2', 'value'),
|
312 |
Input('min-slider_db2-3', 'value'),
|
313 |
Input('max-slider_db2-3', 'value'),
|
314 |
-
|
315 |
)
|
316 |
def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
|
317 |
return [min_1, max_1], [min_2, max_2], [min_3, max_3]
|
318 |
|
319 |
@callback(
|
320 |
-
Output(component_id='my-graph_db2', component_property='figure'
|
321 |
-
Output(component_id='pie-graph_db2', component_property='figure'
|
322 |
-
Output(component_id='scatter-plot_db2', component_property='figure'
|
323 |
-
Output(component_id='scatter-plot_db2-2', component_property='figure'
|
324 |
-
Output(component_id='scatter-plot_db2-3', component_property='figure'
|
325 |
-
Output(component_id='scatter-plot_db2-4', component_property='figure'
|
326 |
-
Output(component_id='scatter-plot_db2-5', component_property='figure'
|
327 |
-
Output(component_id='scatter-plot_db2-6', component_property='figure'
|
328 |
-
Output(component_id='scatter-plot_db2-7', component_property='figure'
|
329 |
-
Output(component_id='scatter-plot_db2-8', component_property='figure'
|
330 |
-
Output(component_id='scatter-plot_db2-9', component_property='figure'
|
331 |
-
Output(component_id='scatter-plot_db2-10', component_property='figure'
|
332 |
-
Output(component_id='scatter-plot_db2-11', component_property='figure'
|
333 |
-
Output(component_id='scatter-plot_db2-12', component_property='figure'
|
334 |
-
Output(component_id='my-graph_db22', component_property='figure'
|
335 |
Input(component_id='dpdn2', component_property='value'),
|
336 |
Input(component_id='dpdn3', component_property='value'),
|
337 |
Input(component_id='dpdn4', component_property='value'),
|
@@ -341,7 +342,7 @@ def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
|
|
341 |
Input(component_id='range-slider_db2-1', component_property='value'),
|
342 |
Input(component_id='range-slider_db2-2', component_property='value'),
|
343 |
Input(component_id='range-slider_db2-3', component_property='value'),
|
344 |
-
|
345 |
)
|
346 |
|
347 |
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,
|
|
|
271 |
|
272 |
# Define the tabs layout
|
273 |
layout = html.Div([
|
274 |
+
html.H1(f'Dataset analysis dashboard: {dataset}'),
|
275 |
dcc.Tabs(id='tabs', style= {'width': 600,
|
276 |
'font-size': '100%',
|
277 |
'height': 50}, value='tab1',children=[
|
|
|
285 |
|
286 |
# Define the circular callback
|
287 |
@callback(
|
288 |
+
Output("min-slider_db2-1", "value"),
|
289 |
+
Output("max-slider_db2-1", "value"),
|
290 |
+
Output("min-slider_db2-2", "value"),
|
291 |
+
Output("max-slider_db2-2", "value"),
|
292 |
+
Output("min-slider_db2-3", "value"),
|
293 |
+
Output("max-slider_db2-3", "value"),
|
294 |
Input("min-slider_db2-1", "value"),
|
295 |
Input("max-slider_db2-1", "value"),
|
296 |
Input("min-slider_db2-2", "value"),
|
297 |
Input("max-slider_db2-2", "value"),
|
298 |
Input("min-slider_db2-3", "value"),
|
299 |
Input("max-slider_db2-3", "value"),
|
300 |
+
|
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_db2-1', 'value'),
|
307 |
+
Output('range-slider_db2-2', 'value'),
|
308 |
+
Output('range-slider_db2-3', 'value'),
|
309 |
Input('min-slider_db2-1', 'value'),
|
310 |
Input('max-slider_db2-1', 'value'),
|
311 |
Input('min-slider_db2-2', 'value'),
|
312 |
Input('max-slider_db2-2', 'value'),
|
313 |
Input('min-slider_db2-3', 'value'),
|
314 |
Input('max-slider_db2-3', 'value'),
|
315 |
+
|
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_db2', component_property='figure'),
|
322 |
+
Output(component_id='pie-graph_db2', component_property='figure'),
|
323 |
+
Output(component_id='scatter-plot_db2', component_property='figure'),
|
324 |
+
Output(component_id='scatter-plot_db2-2', component_property='figure'),
|
325 |
+
Output(component_id='scatter-plot_db2-3', component_property='figure'),
|
326 |
+
Output(component_id='scatter-plot_db2-4', component_property='figure'), # Add this new scatter plot
|
327 |
+
Output(component_id='scatter-plot_db2-5', component_property='figure'),
|
328 |
+
Output(component_id='scatter-plot_db2-6', component_property='figure'),
|
329 |
+
Output(component_id='scatter-plot_db2-7', component_property='figure'),
|
330 |
+
Output(component_id='scatter-plot_db2-8', component_property='figure'),
|
331 |
+
Output(component_id='scatter-plot_db2-9', component_property='figure'),
|
332 |
+
Output(component_id='scatter-plot_db2-10', component_property='figure'),
|
333 |
+
Output(component_id='scatter-plot_db2-11', component_property='figure'),
|
334 |
+
Output(component_id='scatter-plot_db2-12', component_property='figure'),
|
335 |
+
Output(component_id='my-graph_db22', component_property='figure'),
|
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 |
Input(component_id='range-slider_db2-1', component_property='value'),
|
343 |
Input(component_id='range-slider_db2-2', component_property='value'),
|
344 |
Input(component_id='range-slider_db2-3', component_property='value'),
|
345 |
+
|
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,
|