Public
Edited
Sep 17, 2024
3 forks
1 star
Insert cell
Insert cell
Type HTML, then Shift-Enter. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pays = FileAttachment("world.json").json()
Insert cell
banquemondiale = FileAttachment("worldbank.csv").csv({ typed: true })
Insert cell
Insert cell
Insert cell
// Inputs.table(...)
Insert cell
Insert cell
Insert cell
// Inputs.table(...)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Cellule JavaScript
Insert cell
Insert cell
Insert cell
// Cellule JavaScript
Insert cell
Insert cell
Insert cell
Insert cell
// bertin.draw({...})
Insert cell
Insert cell
Insert cell
// bertin.match(...)
Insert cell
Insert cell
// world = bertin.merge(...)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// bertin.draw({ params: {}, layers: [{...}, {...}] })
Insert cell
Insert cell
Insert cell
// bertin.draw(...)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// bertin.draw(...)
Insert cell
Insert cell
// viewof size = Inputs.range([valmin, valmax], {label: "label à afficher", step: 1})
Insert cell
Insert cell
// viewof color = Inputs.color({label: "votre label", value: "votre couleur par défaut"})
Insert cell
Insert cell
// viewof toogle = Inputs.toggle({label: "Ecarter les cercles", value: true})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// bertin.draw({ params: {}, layers: [{...}, {...}] })
Insert cell
Insert cell
Insert cell
Insert cell
- Copiez collez la carte habillée réalisée plus haut.
- Identifiez une donnée qualitative
- Renseignez le paramètre fill de la façon suivante :
Insert cell
Insert cell
// bertin.draw({ params: {}, layers: [{...}, {...}] })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// bertin.draw(...)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more