Platform
Resources
Pricing
Sign in
Get started
Patrick Wojda
Workspace
Fork
Public
By
Patrick Wojda
Edited
Jun 12, 2023
Fork of
Hospital beds in the EU with annotations
1 star
2
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
height
:
4
*
400
+
3
*
8
,
width
:
2
*
400
+
8
,
margin
:
0
,
marks
:
[
plots
.
map
(
(
p
,
i
)
=>
(
a
,
b
,
c
,
context
)
=>
svg
`
<g transform="translate(${
i
%
2
===
0
?
0
:
408
}, ${
Math
.
floor
(
i
/
2
)
*
408
})">
${
p
}
</g>`
)
]
}
)
Insert cell
Insert cell
plots
=
continentsDisputedAreasTopo
.
map
(
(
da
)
=>
{
return
Plot
.
plot
(
{
projection
:
{
type
:
"mercator"
,
inset
:
12
,
domain
:
da
,
rotate
:
[
-
12
,
0
]
}
,
// size and margins
height
:
400
,
width
:
400
,
margin
:
0
,
marks
:
[
Plot
.
frame
(
{
fill
:
"#f7fbfd"
}
)
,
Plot
.
graticule
(
{
stroke
:
"#737373"
}
)
,
Plot
.
geo
(
worldTopo
,
{
fill
:
"#fff"
,
stroke
:
"#222"
,
strokeWidth
:
0.5
}
)
,
Plot
.
geo
(
da
,
{
stroke
:
"red"
,
fill
:
"red"
,
strokeWidth
:
10
,
strokeOpacity
:
0.5
,
fillOpacity
:
1
}
)
,
Plot
.
frame
(
)
]
}
)
;
}
)
Insert cell
Insert cell
world
=
FileAttachment
(
"russiaPOV.json"
)
.
json
(
)
Insert cell
Insert cell
Insert cell
disputedAreasTopo
=
topojson
.
feature
(
disputedAreas
,
disputedAreas
.
objects
.
ne_10m_admin_0_disputed_areas
)
Insert cell
continentsDisputedAreas
=
d3
.
group
(
disputedAreasTopo
.
features
,
(
d
)
=>
d
.
properties
.
CONTINENT
)
Insert cell
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
Compare fork
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
plots
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
world
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
worldTopo
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
disputedAreas
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
disputedAreasTopo
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
continentsDisputedAreas
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
continentsDisputedAreasTopo
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML