Platform
Solutions
Resources
Pricing
Sign in
Sign up
Nicolas Lambert
Hi. I'm Nicolas Lambert, research engineer in geographic information science at CNRS (France). My job is to draw maps and teach cartography at the university. I am a geographer 🌎, and not really a developer 🖥️
Workspace
Fork
Public
geoviz
By
Nicolas Lambert
Edited
Mar 18, 2024
MIT
2 forks
12 stars
geoviz
Map projections
h3-js
Symbols
The draw() function
square
Proportional symbols
Spike mark
Typology
Choropleth
Layout marks
Handle geometries
SVG filters and clip
Tile mark
Containers
insets
Path mark
Text mark
Interactivity
Tooltips
Legends
Circle mark
Ridgelines map
Why it's better not to add scalebars to world maps
Night and day
Pan and zoom
Charging points for electric vehicles in Paris
Let's design a "dot cartogram"
Hello geoviz
World Population
Insert cell
Insert cell
Insert cell
Insert cell
viz
.
plot
(
{
type
:
"typo"
,
data
:
world
,
var
:
"region"
}
)
Insert cell
Insert cell
viz
.
plot
(
{
type
:
"typo"
,
data
:
world
,
var
:
"region"
,
alphabetical
:
true
,
colors
:
"Bold"
}
)
Insert cell
Insert cell
viz
.
plot
(
{
type
:
"typo"
,
data
:
world
,
var
:
"region"
,
order
:
[
"Antarctica"
,
"Oceania"
,
"Africa"
,
"America"
,
"Asia"
,
"Europe"
]
,
colors
:
[
"grey"
,
"green"
,
"blue"
,
"orange"
,
"purple"
,
"red"
]
}
)
Insert cell
Insert cell
Insert cell
Insert cell
{
const
typo
=
viz
.
tool
.
typo
(
world
.
features
.
map
(
(
d
)
=>
d
.
properties
.
region
)
)
;
let
svg
=
viz
.
create
(
{
width
:
700
,
margin
:
[
20
,
0
,
0
,
0
]
,
zoomable
:
true
,
projection
:
d3
.
geoNaturalEarth1
(
)
}
)
;
svg
.
outline
(
)
;
svg
.
path
(
{
strokeWidth
:
0.2
,
data
:
world
,
fill
:
(
d
)
=>
typo
.
colorize
(
d
.
properties
.
region
)
,
tip
:
(
d
)
=>
`${
d
.
properties
.
name
} (${
d
.
properties
.
region
})`
}
)
;
svg
.
legend
.
typo_vertical
(
{
pos
:
[
80
,
180
]
,
title
:
"Continents"
,
alphabetical
:
true
,
colors
:
typo
.
colors
,
types
:
typo
.
types
,
missing
:
false
}
)
;
return
svg
.
render
(
)
;
}
Insert cell
Insert cell
import
{
style
,
world
,
disclaimer
,
aus
,
aus_roads
,
viz
}
from
"@neocartocnrs/geoviz-appendix"
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML