fschwartzer commited on
Commit
159759a
1 Parent(s): 58e577a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -81,8 +81,8 @@ filtered_df = pd.concat(adjusted_rows)
81
  #col1, col2, col3 = st.columns(3) # This divides the page into three equal parts
82
 
83
  # Set custom width for columns
84
- col1_width = 300
85
- col2_width = 300
86
  col3_width = 300
87
  col1, col2, col3 = st.columns([col1_width, col2_width, col3_width])
88
 
@@ -129,8 +129,7 @@ labels = table_data['Conta']
129
  sizes = [(i / total_sum) * 100 for i in table_data['Próximos 12 meses']]
130
 
131
  fig1, ax1 = plt.subplots()
132
- ax1.pie(sizes, labels=labels, autopct='%1.1f%%',
133
- shadow=True, startangle=90)
134
  ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
135
 
136
  col1.pyplot(fig1)
 
81
  #col1, col2, col3 = st.columns(3) # This divides the page into three equal parts
82
 
83
  # Set custom width for columns
84
+ col1_width = 400
85
+ col2_width = 200
86
  col3_width = 300
87
  col1, col2, col3 = st.columns([col1_width, col2_width, col3_width])
88
 
 
129
  sizes = [(i / total_sum) * 100 for i in table_data['Próximos 12 meses']]
130
 
131
  fig1, ax1 = plt.subplots()
132
+ ax1.pie(sizes, labels=labels)
 
133
  ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
134
 
135
  col1.pyplot(fig1)