Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -517,13 +517,14 @@ def main():
|
|
| 517 |
age_groups = ['All Ages', '16-25', '26-35', '36-45', '46-55', '56-65', '65+']
|
| 518 |
selected_age = st.selectbox('Select Age Group:', age_groups)
|
| 519 |
|
| 520 |
-
chart_col, desc_col = st.columns([
|
| 521 |
|
| 522 |
with chart_col:
|
| 523 |
# Create and display chart
|
| 524 |
fig, violations = create_severity_violation_chart(df, selected_age)
|
| 525 |
|
| 526 |
-
clicked_points = plotly_events(fig, click_event=True, override_height=600, override_width="100%")
|
|
|
|
| 527 |
|
| 528 |
if clicked_points:
|
| 529 |
selected_violation = clicked_points[0]['x']
|
|
|
|
| 517 |
age_groups = ['All Ages', '16-25', '26-35', '36-45', '46-55', '56-65', '65+']
|
| 518 |
selected_age = st.selectbox('Select Age Group:', age_groups)
|
| 519 |
|
| 520 |
+
chart_col, desc_col = st.columns([7, 3])
|
| 521 |
|
| 522 |
with chart_col:
|
| 523 |
# Create and display chart
|
| 524 |
fig, violations = create_severity_violation_chart(df, selected_age)
|
| 525 |
|
| 526 |
+
# clicked_points = plotly_events(fig, click_event=True, override_height=600, override_width="100%")
|
| 527 |
+
clicked_points = plotly_events(fig, click_event=True, override_height=600)
|
| 528 |
|
| 529 |
if clicked_points:
|
| 530 |
selected_violation = clicked_points[0]['x']
|