Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -906,9 +906,9 @@ def create_repartition(array_value, selectedData, theme):
|
|
906 |
}
|
907 |
],
|
908 |
},font=dict(size=10),paper_bgcolor=paper_bgcolor,autosize=True,clickmode='event+select'
|
909 |
-
).add_annotation(x=0, y=0.
|
910 |
xref='paper', yref='paper', showarrow=False, align='left',
|
911 |
-
text='La répartition géographique des emplois<br><b>{}</b>'.format(customEmplois),font=dict(size=
|
912 |
|
913 |
######## Compétences professionnelles ########
|
914 |
df_FT.dropna(subset=['qualitesProfessionnelles','formations','competences'], inplace=True)
|
@@ -960,9 +960,9 @@ def create_emploi(df, theme, customRepartition):
|
|
960 |
df_intitule = df.groupby('intitule').size().reset_index(name='obs')
|
961 |
df_intitule = df_intitule.sort_values(by=['obs'])
|
962 |
df_intitule = df_intitule.iloc[-25:]
|
963 |
-
fig_intitule = px.bar(df_intitule, x='obs', y='intitule', 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,clickmode='event+select',autosize=True).update_traces(hovertemplate=df_intitule["intitule"] + ' <br>Nombre : %{x}', y=[y[:100] + "..." for y in df_intitule["intitule"]], showlegend=False).add_annotation(x=0, y=0, xanchor='left', yanchor='bottom',
|
964 |
xref='paper', yref='paper', showarrow=False, align='left',
|
965 |
-
text='Les principaux emplois<br><b>{}</b>'.format(customRepartition),font=dict(size=
|
966 |
|
967 |
return fig_intitule
|
968 |
|
|
|
906 |
}
|
907 |
],
|
908 |
},font=dict(size=10),paper_bgcolor=paper_bgcolor,autosize=True,clickmode='event+select'
|
909 |
+
).add_annotation(x=0, y=0.95, xanchor='left', yanchor='bottom',
|
910 |
xref='paper', yref='paper', showarrow=False, align='left',
|
911 |
+
text='La répartition géographique des emplois<br><b>{}</b>'.format(customEmplois),font=dict(color="black",size=14))
|
912 |
|
913 |
######## Compétences professionnelles ########
|
914 |
df_FT.dropna(subset=['qualitesProfessionnelles','formations','competences'], inplace=True)
|
|
|
960 |
df_intitule = df.groupby('intitule').size().reset_index(name='obs')
|
961 |
df_intitule = df_intitule.sort_values(by=['obs'])
|
962 |
df_intitule = df_intitule.iloc[-25:]
|
963 |
+
fig_intitule = px.bar(df_intitule, x='obs', y='intitule', 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,clickmode='event+select',autosize=True).update_traces(hovertemplate=df_intitule["intitule"] + ' <br>Nombre : %{x}', y=[y[:100] + "..." for y in df_intitule["intitule"]], showlegend=False).add_annotation(x=0, y=0.95, xanchor='left', yanchor='bottom',
|
964 |
xref='paper', yref='paper', showarrow=False, align='left',
|
965 |
+
text='Les principaux emplois<br><b>{}</b>'.format(customRepartition),font=dict(size=14))
|
966 |
|
967 |
return fig_intitule
|
968 |
|