Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -892,7 +892,7 @@ def create_repartition(array_value, selectedData, theme):
|
|
892 |
res = requests.get(
|
893 |
"https://raw.githubusercontent.com/codeforgermany/click_that_hood/main/public/data/france-regions.geojson"
|
894 |
)
|
895 |
-
fig_localisation = px.scatter_mapbox(df_localisation, lat="latitude", lon="longitude", height=600, template=template,
|
896 |
mapbox={
|
897 |
"style": "carto-positron",
|
898 |
"center": {"lon": 2, "lat" : 47},
|
@@ -908,7 +908,7 @@ def create_repartition(array_value, selectedData, theme):
|
|
908 |
},font=dict(size=10),paper_bgcolor=paper_bgcolor,autosize=True,clickmode='event+select'
|
909 |
).add_annotation(x=0, y=0.85, xanchor='left', yanchor='bottom',
|
910 |
xref='paper', yref='paper', showarrow=False, align='left',
|
911 |
-
text='<
|
912 |
|
913 |
######## Compétences professionnelles ########
|
914 |
df_FT.dropna(subset=['qualitesProfessionnelles','formations','competences'], inplace=True)
|
|
|
892 |
res = requests.get(
|
893 |
"https://raw.githubusercontent.com/codeforgermany/click_that_hood/main/public/data/france-regions.geojson"
|
894 |
)
|
895 |
+
fig_localisation = px.scatter_mapbox(df_localisation, lat="latitude", lon="longitude", height=600, template=template, hover_name="lieuTravail", size="obs").update_layout(
|
896 |
mapbox={
|
897 |
"style": "carto-positron",
|
898 |
"center": {"lon": 2, "lat" : 47},
|
|
|
908 |
},font=dict(size=10),paper_bgcolor=paper_bgcolor,autosize=True,clickmode='event+select'
|
909 |
).add_annotation(x=0, y=0.85, xanchor='left', yanchor='bottom',
|
910 |
xref='paper', yref='paper', showarrow=False, align='left',
|
911 |
+
text='<b>{}</b><br>La répartition géographique des emplois'.format(customEmplois))
|
912 |
|
913 |
######## Compétences professionnelles ########
|
914 |
df_FT.dropna(subset=['qualitesProfessionnelles','formations','competences'], inplace=True)
|