AugustinHuang commited on
Commit
30b9101
·
verified ·
1 Parent(s): a226638

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ Văn bản: {text}"""
94
  labels, values = list(cat_counts.keys()), list(cat_counts.values())
95
  colors = px.colors.qualitative.Pastel
96
  fig = go.Figure(data=[go.Pie(labels=labels, values=values, hole=0.4, marker_colors=colors, textinfo='percent+label', insidetextorientation='radial')])
97
- fig.update_layout(title={'text': "📊 Daily Activity Distribution", 'y':0.95, 'x':0.5, 'xanchor':'center', 'yanchor':'top'}, height=420, margin=dict(t=60, b=40, l=20, r=20), showlegend=True, legend=dict(orientation="h", yanchor="bottom", y=-0.1, xanchor="center", x=0.5))
98
  return fig
99
 
100
  def create_sentiment_chart(self, sentiment_data):
 
94
  labels, values = list(cat_counts.keys()), list(cat_counts.values())
95
  colors = px.colors.qualitative.Pastel
96
  fig = go.Figure(data=[go.Pie(labels=labels, values=values, hole=0.4, marker_colors=colors, textinfo='percent+label', insidetextorientation='radial')])
97
+ fig.update_layout(title={'text': "📊 Daily Activity Distribution", 'y':0.95, 'x':0.5, 'xanchor':'center', 'yanchor':'top'}, height=420, margin=dict(t=30, b=40, l=20, r=20), showlegend=True, legend=dict(orientation="h", yanchor="bottom", y=-0.1, xanchor="center", x=0.5))
98
  return fig
99
 
100
  def create_sentiment_chart(self, sentiment_data):