Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -127,9 +127,9 @@ fig.update_traces(
|
|
| 127 |
fig.update_layout(
|
| 128 |
legend_title_text="Crime Type",
|
| 129 |
margin=dict(t=60, b=20, l=20, r=20),
|
| 130 |
-
height=
|
| 131 |
title_x=0.5
|
| 132 |
)
|
| 133 |
|
| 134 |
st.plotly_chart(fig, use_container_width=True)
|
| 135 |
-
st.markdown(""" The donut chart shows the share of the ten most frequent crime categories in the selected year. At the center, you can see that Vehicle – Stolen is the single largest slice, accounting for roughly
|
|
|
|
| 127 |
fig.update_layout(
|
| 128 |
legend_title_text="Crime Type",
|
| 129 |
margin=dict(t=60, b=20, l=20, r=20),
|
| 130 |
+
height=700,
|
| 131 |
title_x=0.5
|
| 132 |
)
|
| 133 |
|
| 134 |
st.plotly_chart(fig, use_container_width=True)
|
| 135 |
+
st.markdown(""" The donut chart shows the share of the ten most frequent crime categories in the selected year. At the center, you can see that Vehicle – Stolen is the single largest slice, accounting for roughly 18.7% of all incidents, The remaining five categories each represent between 3%–5% of total incidents—these include miscellaneous crimes, criminal threats, assault with a deadly weapon, burglary, and minor vandalism. By displaying both slice size and percentage labels, the chart makes it easy to compare how dominant property‐related offenses are, versus violent or lesser‐common crimes, in that year’s LAPD data. """)
|