Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -956,7 +956,7 @@ def create_repartition(array_value, selectedData, theme):
|
|
956 |
df_secteur = df_secteur.iloc[-25:]
|
957 |
fig_secteur = px.bar(df_secteur, x='obs', y='secteurActiviteLibelle', height=600, orientation='h', color='obs', template=template, labels={'obs':'nombre'}, color_continuous_scale="Teal", text_auto=True).update_layout(font=dict(size=10),paper_bgcolor=paper_bgcolor,plot_bgcolor=plot_bgcolor,autosize=True).update_traces(hovertemplate=df_secteur["secteurActiviteLibelle"] + ' <br>Nombre : %{x}', y=[y[:80] + "..." for y in df_secteur["secteurActiviteLibelle"]], showlegend=False).add_annotation(x=0, y=1.0, xanchor='left', yanchor='bottom',
|
958 |
xref='paper', yref='paper', showarrow=False, align='left',
|
959 |
-
text='Les principaux secteurs d'activités<br><b>{}</b>'.format(customEmplois),font=dict(size=14))
|
960 |
|
961 |
|
962 |
return fig_localisation, fig_competences, fig_transversales, fig_niveau, fig_secteur
|
|
|
956 |
df_secteur = df_secteur.iloc[-25:]
|
957 |
fig_secteur = px.bar(df_secteur, x='obs', y='secteurActiviteLibelle', height=600, orientation='h', color='obs', template=template, labels={'obs':'nombre'}, color_continuous_scale="Teal", text_auto=True).update_layout(font=dict(size=10),paper_bgcolor=paper_bgcolor,plot_bgcolor=plot_bgcolor,autosize=True).update_traces(hovertemplate=df_secteur["secteurActiviteLibelle"] + ' <br>Nombre : %{x}', y=[y[:80] + "..." for y in df_secteur["secteurActiviteLibelle"]], showlegend=False).add_annotation(x=0, y=1.0, xanchor='left', yanchor='bottom',
|
958 |
xref='paper', yref='paper', showarrow=False, align='left',
|
959 |
+
text='Les principaux secteurs d\'activités<br><b>{}</b>'.format(customEmplois),font=dict(size=14))
|
960 |
|
961 |
|
962 |
return fig_localisation, fig_competences, fig_transversales, fig_niveau, fig_secteur
|