datacipen commited on
Commit
8f324f7
·
verified ·
1 Parent(s): 2a64b9f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -209,7 +209,7 @@ async def on_chat_start():
209
  elements.append(cl.Plotly(name="chart_nb_charge_entreprise", figure=fig_nb_charge_engagement, display="inline", size="large"))
210
  #await cl.sleep(2)
211
  df_statut = df.groupby('fonction_Statut_repondant').size().reset_index(name='obs')
212
- fig_statut = px.bar(df_statut, x='obs', y='fonction_Statut_repondant', orientation='h', color='obs', title="Le profil des répondants", labels={'obs':'nombre'}, color_discrete_sequence=px.colors.qualitative.Safe, text_auto=True).update_layout(font=dict(size=10,color="RebeccaPurple")).update_traces(showlegend=False)
213
  elements.append(cl.Plotly(name="chart_statut", figure=fig_statut, display="inline", size="large"))
214
  #await cl.sleep(2)
215
  df1 = df
 
209
  elements.append(cl.Plotly(name="chart_nb_charge_entreprise", figure=fig_nb_charge_engagement, display="inline", size="large"))
210
  #await cl.sleep(2)
211
  df_statut = df.groupby('fonction_Statut_repondant').size().reset_index(name='obs')
212
+ fig_statut = px.bar(df_statut, x='obs', y='fonction_Statut_repondant', orientation='h', color='obs', title="Le profil des répondants", labels={'obs':'nombre'}, color_continuous_scale="Blues", text_auto=True).update_layout(font=dict(size=10,color="RebeccaPurple")).update_traces(showlegend=False)
213
  elements.append(cl.Plotly(name="chart_statut", figure=fig_statut, display="inline", size="large"))
214
  #await cl.sleep(2)
215
  df1 = df