vgosavi2 commited on
Commit
950c721
·
verified ·
1 Parent(s): b434a0b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -5
src/streamlit_app.py CHANGED
@@ -20,7 +20,7 @@ st.markdown("""
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 */
@@ -137,14 +137,15 @@ fig = px.pie(
137
  fig.update_traces(
138
  textposition="outside",
139
  textinfo="label+percent",
140
- pull=[0.05] * len(top_crimes),
141
- marker=dict(line=dict(color="white", width=2))
142
  )
143
 
144
  fig.update_layout(
145
  legend_title_text="Crime Type",
146
- margin=dict(t=60, b=20, l=20, r=20),
147
- height=700,
 
148
  title_x=0.5
149
  )
150
 
 
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 */
 
137
  fig.update_traces(
138
  textposition="outside",
139
  textinfo="label+percent",
140
+ pull=[0.02] * len(top_crimes),
141
+ marker=dict(line=dict(color="white", width=1))
142
  )
143
 
144
  fig.update_layout(
145
  legend_title_text="Crime Type",
146
+ margin=dict(t=40, b=20, l=20, r=20),
147
+ height=600,
148
+ width=450,
149
  title_x=0.5
150
  )
151