Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
|
@@ -20,7 +20,7 @@ st.markdown("""
|
|
| 20 |
}
|
| 21 |
/* Paragraph/write-up styling */
|
| 22 |
.description {
|
| 23 |
-
max-width:
|
| 24 |
margin: 0 auto; /* center the block */
|
| 25 |
font-size: 18px; /* comfortable reading size */
|
| 26 |
line-height: 1.6; /* good spacing */
|
|
@@ -149,4 +149,8 @@ fig.update_layout(
|
|
| 149 |
)
|
| 150 |
|
| 151 |
st.plotly_chart(fig, use_container_width=True)
|
| 152 |
-
st.markdown("""<div class="description" The donut chart shows the share of the ten most frequent crime categories in the selected year.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
/* Paragraph/write-up styling */
|
| 22 |
.description {
|
| 23 |
+
max-width: 1600px; /* prevent super long lines */
|
| 24 |
margin: 0 auto; /* center the block */
|
| 25 |
font-size: 18px; /* comfortable reading size */
|
| 26 |
line-height: 1.6; /* good spacing */
|
|
|
|
| 149 |
)
|
| 150 |
|
| 151 |
st.plotly_chart(fig, use_container_width=True)
|
| 152 |
+
st.markdown("""<div class="description"> The donut chart shows the share of the ten most frequent crime categories in the selected year.
|
| 153 |
+
At the center, you can see that Vehicle – Stolen is the single largest slice, accounting for roughly 18.7% of all incidents,
|
| 154 |
+
The remaining five categories each represent between 3%–5% of total incidents—these include miscellaneous crimes, criminal threats,
|
| 155 |
+
assault with a deadly weapon, burglary, and minor vandalism. By displaying both slice size and percentage labels, the chart makes it easy
|
| 156 |
+
to compare how dominant property‐related offenses are, versus violent or lesser‐common crimes, in that year’s LAPD data.</div>""",unsafe_allow_html=True)
|