Platform
Resources
Pricing
Sign in
Get started
leiy
Workspace
Fork
Public
By
leiy
Edited
Mar 10, 2023
2
Insert cell
Insert cell
cities
=
FileAttachment
(
"uscities.csv"
)
.
csv
(
)
Insert cell
us
=
FileAttachment
(
"us.json"
)
.
json
(
)
Insert cell
nation
=
topojson
.
feature
(
us
,
us
.
objects
.
nation
)
Insert cell
Plot
.
plot
(
{
width
:
960
,
height
:
600
,
projection
:
"albers"
,
marks
:
[
Plot
.
geo
(
nation
)
,
Plot
.
dot
(
cities
,
{
x
:
"lng"
,
y
:
"lat"
,
fill
:
"red"
,
r
:
.5
,
title
:
d
=>
d
[
'city'
]
+
', '
+
d
[
'state_id'
]
}
)
,
Plot
.
voronoiMesh
(
cities
,
{
x
:
"lng"
,
y
:
"lat"
}
)
]
}
)
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
cities
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
us
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nation
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML