Public
Edited
Apr 14, 2023
2 forks
12 stars
Also listed in…
Maps
Insert cell
Insert cell
Insert cell
bertin.draw({
params: { projection: "Bertin1953", background: "white", margin: 20 },
layers: [
{
type: "waterlines",
geojson: world,
nb: 5, // number of lines
dist: 5 // distance between lines
},
{
geojson: world,
fill: "white",
stroke: "none"
}
]
})
Insert cell
Insert cell
bertin.draw({
params: { projection: "Bertin1953", background: "#82b0e8" },
layers: [
{
type: "waterlines",
geojson: world,
nb: 3, // number of lines
dist: 10, // distance between lines
stroke: ["black", "white"], // If more than 1 value is defined, a linear scale is done beetwen values (default:"#5d81ba")
precision: 1, // number of steps defining buffers. 1 = not accurate, 8 = accurate. (default: 3)
strokeWidth: [2, 1], // if more than 1 value is defined, a linear scale is done beetwen values(default: [1.2, 0.2])
strokeOpacity: [1, 0.5], // if more than 1 value is defined, a linear scale is done beetwen values
strokeDasharray: [4, 4], // stroke-dasharray (default: "none")
strokeLinecap: "round", // stroke-linecap (default: "round")
strokeLinejoin: "round" // stroke-linejoin (default: "round")
},
{
geojson: world,
fill: "white",
fillOpacity: 0.3,
stroke: "none"
}
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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