Platform
Resources
Pricing
Sign in
Get started
Etienne Côme
Workspace
Fork
Public
By
Etienne Côme
Edited
Feb 6, 2024
Insert cell
Insert cell
colleges
=
d3
.
json
(
"https://data.education.gouv.fr/api/explore/v2.1/catalog/datasets/fr-en-annuaire-education/records?where=type_etablissement%3D%22Coll%C3%A8ge%22%20and%20libelle_departement%3D%22Charente%22%20and%20etat%3D%22OUVERT%22%20&limit=-1"
)
Insert cell
Plot
.
plot
(
{
y
:
{
grid
:
true
}
,
color
:
{
legend
:
true
}
,
marks
:
[
Plot
.
rectY
(
colleges
.
results
,
Plot
.
binX
(
{
y
:
"count"
}
,
{
x
:
"nombre_d_eleves"
,
fill
:
"statut_public_prive"
}
)
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
ecoles
=
d3
.
json
(
"https://data.education.gouv.fr/api/explore/v2.1/catalog/datasets/fr-en-adresse-et-geolocalisation-etablissements-premier-et-second-degre/exports/geojson?lang=fr&timezone=Europe%2FBerlin"
)
Insert cell
colleges_pts
=
ecoles
.
features
.
filter
(
e
=>
e
.
properties
.
nature_uai_libe
==
"COLLEGE"
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
colleges
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
ecoles
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
colleges_pts
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML