Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
5203baf
1 Parent(s): 62fb673

pie chart fix

Browse files
Files changed (1) hide show
  1. appStore/sdg_analysis.py +4 -3
appStore/sdg_analysis.py CHANGED
@@ -129,18 +129,19 @@ def app():
129
  fig, ax = plt.subplots()
130
  ax.pie(x['count'], colors=colors, radius=2, center=(4, 4),
131
  wedgeprops={"linewidth": 1, "edgecolor": "white"},
132
- frame=False,labels =list(x.SDG))
 
133
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
134
 
135
 
136
  st.markdown("#### Anything related to SDGs? ####")
137
 
138
- c4, c5, c6 = st.columns([1, 5, 2])
139
 
140
  with c5:
141
  st.pyplot(fig)
142
  with c6:
143
- st.table(x[['SDG','SDG_name']])
144
 
145
  st.markdown("###### What keywords are present under SDG classified text? ######")
146
 
 
129
  fig, ax = plt.subplots()
130
  ax.pie(x['count'], colors=colors, radius=2, center=(4, 4),
131
  wedgeprops={"linewidth": 1, "edgecolor": "white"},
132
+ frame=False,labels =list(x.SDG),
133
+ labeldistance=1.2)
134
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
135
 
136
 
137
  st.markdown("#### Anything related to SDGs? ####")
138
 
139
+ c4, c5, c6 = st.columns([1,3,2])
140
 
141
  with c5:
142
  st.pyplot(fig)
143
  with c6:
144
+ st.table(x[['SDG','SDG_name']].set_index('SDG', inplace = True))
145
 
146
  st.markdown("###### What keywords are present under SDG classified text? ######")
147