Spaces:
Runtime error
Runtime error
adding color to plot title and indexes
Browse files
app.py
CHANGED
|
@@ -490,7 +490,7 @@ if st.session_state.get('button') == True:
|
|
| 490 |
|
| 491 |
for i, bar in enumerate(bars):
|
| 492 |
rounded_value = round(sel_var_values[i], 2)
|
| 493 |
-
ax.text(bar.get_width() + 0.3, bar.get_y() + bar.get_height()/2, str(rounded_value) + '%', ha='left', va='center', fontsize=12, fontweight='bold')
|
| 494 |
|
| 495 |
ax.margins(0.1,0.05)
|
| 496 |
|
|
|
|
| 490 |
|
| 491 |
for i, bar in enumerate(bars):
|
| 492 |
rounded_value = round(sel_var_values[i], 2)
|
| 493 |
+
ax.text(bar.get_width() + 0.3, bar.get_y() + bar.get_height()/2, str(rounded_value) + '%', ha='left', va='center', fontsize=12, fontweight='bold', color='y')
|
| 494 |
|
| 495 |
ax.margins(0.1,0.05)
|
| 496 |
|