SHELLAPANDIANGANHUNGING commited on
Commit
818c9ef
·
verified ·
1 Parent(s): ee4beb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1099,7 +1099,14 @@ if WORDCLOUD_AVAILABLE:
1099
  color_discrete_sequence=colors
1100
  )
1101
  fig_pie.update_traces(textposition='inside', textinfo='percent+label')
1102
- fig_pie.update_layout(height=500)
 
 
 
 
 
 
 
1103
  st.plotly_chart(fig_pie, use_container_width=True)
1104
  else:
1105
  st.warning("No data available for pie chart.")
@@ -1130,7 +1137,7 @@ if WORDCLOUD_AVAILABLE:
1130
 
1131
  # Output kecil tapi tajam
1132
  fig, ax = plt.subplots(figsize=(3, 2), dpi=200)
1133
- ax.set_title("Unsafe Issues", fontsize=10)
1134
  ax.imshow(wordcloud, interpolation='bilinear')
1135
  ax.axis('off')
1136
  plt.tight_layout()
 
1099
  color_discrete_sequence=colors
1100
  )
1101
  fig_pie.update_traces(textposition='inside', textinfo='percent+label')
1102
+ fig_pie.update_layout(
1103
+ height=500,
1104
+ title=dict(
1105
+ font=dict(size=16, family="Arial", color="#2c3e50", weight="bold"),
1106
+ x=0.5,
1107
+ xanchor="center"
1108
+ )
1109
+ )
1110
  st.plotly_chart(fig_pie, use_container_width=True)
1111
  else:
1112
  st.warning("No data available for pie chart.")
 
1137
 
1138
  # Output kecil tapi tajam
1139
  fig, ax = plt.subplots(figsize=(3, 2), dpi=200)
1140
+ ax.set_title("Unsafe Issues", fontsize=16, fontname="Arial", color="#2c3e50", weight="bold")
1141
  ax.imshow(wordcloud, interpolation='bilinear')
1142
  ax.axis('off')
1143
  plt.tight_layout()