ralate2 commited on
Commit
b76d87f
·
verified ·
1 Parent(s): 8f5dc0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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=500,
102
  height=400,
103
  title="Licenses by Status (Top 5)"
104
  ).configure_axis(
105
- labelAngle=0 # Ensure the full name is visible
 
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: