Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
datacirco-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leximpact
DataCirco
datacirco-ui
Commits
b2088028
Commit
b2088028
authored
Feb 7, 2024
by
Benoît Courty
Committed by
benoit-cty
Feb 12, 2024
Browse files
Options
Downloads
Patches
Plain Diff
update Dorine
parent
ec21dcc7
No related branches found
No related tags found
1 merge request
!6
Ajout de la section Education
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/education_graph.ts
+41
-21
41 additions, 21 deletions
src/lib/education_graph.ts
with
41 additions
and
21 deletions
src/lib/education_graph.ts
+
41
−
21
View file @
b2088028
...
...
@@ -142,9 +142,9 @@ export function plot_map(
}
/*Carte de l'effectif des établissements supérieurs*/
le
t
hovertemplate
=
cons
t
hovertemplate
=
"
%{customdata.libelle_commune}<br>Statut : %{customdata.secteur_public_prive_libe}<br>%{customdata.type_d_etablissement}<br>Effectif : %{customdata.effectifs}<extra></extra>
"
le
t
color
=
dataEducation
.
etablissements_superieur
.
map
((
d
)
=>
cons
t
color
=
dataEducation
.
etablissements_superieur
.
map
((
d
)
=>
typeof
d
.
effectifs
===
"
undefined
"
||
d
.
effectifs
===
null
?
"
grey
"
:
colorScaleEffectif
(
d
.
effectifs
),
...
...
@@ -192,9 +192,9 @@ export function plot_map(
customdata
.
ips_premier_et_second_prive_france
,
]
const
ips_premier_et_second_france_labels
=
[
"
France max
"
,
"
France min
"
,
"
France moyen
ne
"
,
"
France
IPS
max
"
,
"
France
IPS
min
"
,
"
France
IPS
moyen
"
,
]
const
shapes_ips_prive_france
=
ips_premier_et_second_prive_france
.
map
(
(
ips
)
=>
({
...
...
@@ -204,8 +204,8 @@ export function plot_map(
x1
:
-
10
,
y1
:
ips
,
line
:
{
color
:
"
red
"
,
width
:
2
,
color
:
"
gray
"
,
width
:
1
,
dash
:
"
dot
"
,
},
}),
...
...
@@ -221,6 +221,11 @@ export function plot_map(
text
:
ips_premier_et_second_france_labels
[
ips_premier_et_second_prive_france
.
indexOf
(
ips
)
],
font
:
{
size
:
10
,
color
:
"
gray
"
,
},
align
:
"
left
"
,
}),
)
...
...
@@ -238,23 +243,27 @@ export function plot_map(
x1
:
0
,
y1
:
ips
,
line
:
{
color
:
"
blue
"
,
width
:
2
,
color
:
"
gray
"
,
width
:
1
,
dash
:
"
dot
"
,
},
}),
)
const
annotations_public_france
=
ips_premier_et_second_public_france
.
map
(
(
ips
)
=>
({
x
:
1
5
,
x
:
1
8
,
y
:
ips
,
xref
:
"
x
"
,
yref
:
"
y
"
,
ax
:
0
,
ay
:
-
1
0
,
ay
:
0
,
text
:
ips_premier_et_second_france_labels
[
ips_premier_et_second_public_france
.
indexOf
(
ips
)
],
font
:
{
size
:
10
,
color
:
"
gray
"
,
},
}),
)
const
shape_ips_public_circo
=
{
...
...
@@ -266,7 +275,7 @@ export function plot_map(
line
:
{
color
:
"
blue
"
,
width
:
2
,
dash
:
"
d
ash
"
,
dash
:
"
d
ot
"
,
},
}
const
shape_ips_prive_circo
=
{
...
...
@@ -278,7 +287,7 @@ export function plot_map(
line
:
{
color
:
"
red
"
,
width
:
2
,
dash
:
"
d
ash
"
,
dash
:
"
d
ot
"
,
},
}
const
annotations_prive_circo
=
{
...
...
@@ -288,22 +297,33 @@ export function plot_map(
yref
:
"
y
"
,
ax
:
0
,
ay
:
-
10
,
text
:
"
Moyenne circonscription
"
,
text
:
"
IPS moyen
"
,
font
:
{
size
:
10
,
color
:
"
red
"
,
},
align
:
"
left
"
,
}
const
annotations_public_circo
=
{
x
:
1
0
,
x
:
1
7
,
y
:
customdata
.
ips_premier_et_second_public_circo
,
xref
:
"
x
"
,
yref
:
"
y
"
,
ax
:
0
,
ay
:
-
10
,
text
:
"
Moyenne circonscription
"
,
ay
:
0
,
text
:
"
IPS moyen
"
,
font
:
{
size
:
10
,
color
:
"
blue
"
,
textalign
:
"
left
"
,
},
position
:
"
left
"
,
}
const
layout
=
{
title
:
"
Répartition des établissements par IPS
"
,
width
:
6
00
,
height
:
4
00
,
//
title: "Répartition des établissements par IPS",
width
:
8
00
,
height
:
5
00
,
paper_bgcolor
:
"
rgba(0,0,0,0)
"
,
barmode
:
"
overlay
"
,
bargap
:
0.0
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment