vgosavi2 commited on
Commit
f3db840
·
verified ·
1 Parent(s): 76e95ba

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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=600,
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 27% of all incidents, followed by Theft – Grand (18%) and Vehicle, Stolen – Other (motorized scooters, bikes, etc.) at about 18%. Battery – Simple Assault (12%) and Robbery (5%) round out the next largest wedges. 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. """)
 
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. """)