Update app.py
Browse files
app.py
CHANGED
@@ -428,6 +428,7 @@ def main():
|
|
428 |
values=list(emotion_counts.values()),
|
429 |
names=[emotion_emojis[e] + ' ' + e for e in emotion_counts.keys()],
|
430 |
title="Tỷ lệ các cảm xúc",
|
|
|
431 |
color_discrete_map={emotion_emojis[e] + ' ' + e: emotion_colors[e] for e in emotion_counts.keys()}
|
432 |
)
|
433 |
st.plotly_chart(fig_pie, use_container_width=True)
|
|
|
428 |
values=list(emotion_counts.values()),
|
429 |
names=[emotion_emojis[e] + ' ' + e for e in emotion_counts.keys()],
|
430 |
title="Tỷ lệ các cảm xúc",
|
431 |
+
color=names,
|
432 |
color_discrete_map={emotion_emojis[e] + ' ' + e: emotion_colors[e] for e in emotion_counts.keys()}
|
433 |
)
|
434 |
st.plotly_chart(fig_pie, use_container_width=True)
|