datacipen commited on
Commit
7b25a17
·
verified ·
1 Parent(s): 32f0a69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, title="La répartition géographique des emplois", hover_name="lieuTravail", size="obs").update_layout(
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='<br><b>{}</b>'.format(customEmplois))
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)