Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -600,48 +600,24 @@ def main():
|
|
600 |
st.markdown("# To-Do List for Part 3")
|
601 |
st.markdown("For the final project part 3, we plan to create two pairs of linked interactive visualizations for analyzing traffic accident data as follows:")
|
602 |
|
603 |
-
|
604 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
|
606 |
-
|
607 |
-
st.markdown("""
|
608 |
-
### Planned Visualizations
|
609 |
-
|
610 |
-
1. **Severity-Location Analysis**
|
611 |
-
* A bar chart displaying accident severity counts
|
612 |
-
* A map visualizing accident locations with marker clusters and heatmaps
|
613 |
-
* Interactions in one visualization (e.g., clicking a bar in the chart) will dynamically update the other
|
614 |
-
* Enables seamless exploration of data
|
615 |
-
|
616 |
-
2. **Violation-Severity Analysis**
|
617 |
-
* An interactive bar and pie chart system
|
618 |
-
* Shows the distribution of severity levels for selected violation types
|
619 |
-
* Clicking a specific bar from the "Crash Severity Distribution by Violation Type" bar plot
|
620 |
-
* Dynamically updates a pie plot showing detailed distribution of the chosen violation type
|
621 |
-
* Based on the selected age group
|
622 |
-
""")
|
623 |
-
|
624 |
-
with deliver_col:
|
625 |
-
st.markdown("""
|
626 |
-
### Key Deliverables
|
627 |
-
|
628 |
-
* **Interactive Bar Chart**
|
629 |
-
- Displays accident counts by severity
|
630 |
-
- Allows users to filter data by clicking specific bars
|
631 |
-
|
632 |
-
* **Interactive Map**
|
633 |
-
- Shows accident locations using marker clusters and heatmaps
|
634 |
-
- Features popups displaying details (e.g., date, severity)
|
635 |
-
|
636 |
-
* **Two-Way Interactivity**
|
637 |
-
- Synchronizes updates between the bar chart and map
|
638 |
-
- Based on user interactions
|
639 |
-
|
640 |
-
* **User Interface**
|
641 |
-
- Sidebar controls for year selection
|
642 |
-
- Clear interaction instructions
|
643 |
-
- Display of applied filters
|
644 |
-
""")
|
645 |
st.markdown("---")
|
646 |
|
647 |
# Add conclusion section
|
|
|
600 |
st.markdown("# To-Do List for Part 3")
|
601 |
st.markdown("For the final project part 3, we plan to create two pairs of linked interactive visualizations for analyzing traffic accident data as follows:")
|
602 |
|
603 |
+
st.markdown("""
|
604 |
+
### Planned Visualizations
|
605 |
+
|
606 |
+
1. **Severity-Location Analysis**
|
607 |
+
* A bar chart displaying accident severity counts
|
608 |
+
* A map visualizing accident locations with marker clusters and heatmaps
|
609 |
+
* Interactions in one visualization (e.g., clicking a bar in the chart) will dynamically update the other
|
610 |
+
* Enables seamless exploration of data
|
611 |
+
|
612 |
+
2. **Violation-Severity Analysis**
|
613 |
+
* An interactive bar and pie chart system
|
614 |
+
* Shows the distribution of severity levels for selected violation types
|
615 |
+
* Clicking a specific bar from the "Crash Severity Distribution by Violation Type" bar plot
|
616 |
+
* Dynamically updates a pie plot showing detailed distribution of the chosen violation type
|
617 |
+
* Based on the selected age group
|
618 |
+
""")
|
619 |
|
620 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
621 |
st.markdown("---")
|
622 |
|
623 |
# Add conclusion section
|