Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,11 +98,12 @@ if not category_counts_top5.empty:
|
|
| 98 |
scale=alt.Scale(scheme='pastel1')), # Pastel color scheme
|
| 99 |
tooltip=['License Status', 'Count']
|
| 100 |
).properties(
|
| 101 |
-
width=
|
| 102 |
height=400,
|
| 103 |
title="Licenses by Status (Top 5)"
|
| 104 |
).configure_axis(
|
| 105 |
-
labelAngle=
|
|
|
|
| 106 |
)
|
| 107 |
st.altair_chart(chart1)
|
| 108 |
else:
|
|
|
|
| 98 |
scale=alt.Scale(scheme='pastel1')), # Pastel color scheme
|
| 99 |
tooltip=['License Status', 'Count']
|
| 100 |
).properties(
|
| 101 |
+
width=600, # Increased width to accommodate long labels
|
| 102 |
height=400,
|
| 103 |
title="Licenses by Status (Top 5)"
|
| 104 |
).configure_axis(
|
| 105 |
+
labelAngle=45, # Rotate labels for better visibility
|
| 106 |
+
labelPadding=10 # Add padding to avoid clipping
|
| 107 |
)
|
| 108 |
st.altair_chart(chart1)
|
| 109 |
else:
|