Spaces:
Running
Running
Commit
•
8786994
1
Parent(s):
159759a
Update app.py
Browse files
app.py
CHANGED
@@ -81,9 +81,9 @@ 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 =
|
85 |
-
col2_width =
|
86 |
-
col3_width =
|
87 |
col1, col2, col3 = st.columns([col1_width, col2_width, col3_width])
|
88 |
|
89 |
# Display the Forecasts values in the first column
|
@@ -129,7 +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)
|
133 |
ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
|
134 |
|
135 |
col1.pyplot(fig1)
|
@@ -193,8 +193,8 @@ else:
|
|
193 |
# Display the table in the third column
|
194 |
#col3 = st.columns(1) # You can use st.columns(1) to create a single column layout
|
195 |
|
196 |
-
col4_width =
|
197 |
-
col5_width =
|
198 |
col4, col5 = st.columns([col4_width, col5_width])
|
199 |
|
200 |
col4.header('Realizado X Previsto')
|
|
|
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 = 500
|
85 |
+
col2_width = 500
|
86 |
+
col3_width = 500
|
87 |
col1, col2, col3 = st.columns([col1_width, col2_width, col3_width])
|
88 |
|
89 |
# Display the Forecasts values in the first column
|
|
|
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 |
ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
|
134 |
|
135 |
col1.pyplot(fig1)
|
|
|
193 |
# Display the table in the third column
|
194 |
#col3 = st.columns(1) # You can use st.columns(1) to create a single column layout
|
195 |
|
196 |
+
col4_width = 750
|
197 |
+
col5_width = 750
|
198 |
col4, col5 = st.columns([col4_width, col5_width])
|
199 |
|
200 |
col4.header('Realizado X Previsto')
|