Platform
Resources
Pricing
Sign in
Get started
Templates /
Plot: Spherical line
Sign up to use template
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Unlisted
Edited
Apr 21, 2023
2
Insert cell
Insert cell
Plot
.
plot
(
{
projection
:
"equirectangular"
,
marks
:
[
Plot
.
geo
(
land
)
,
// MultiPolygon
Plot
.
line
(
beagle
,
{
stroke
:
"red"
}
)
,
// [[lon, lat], …]
Plot
.
geo
(
{
type
:
"Point"
,
coordinates
:
[
-
0.13
,
51.5
]
}
,
{
fill
:
"red"
}
)
// London
]
}
)
Insert cell
beagle
=
FileAttachment
(
"beagle.csv"
)
.
csv
(
{
array
:
true
,
typed
:
true
}
)
Insert cell
world
=
FileAttachment
(
"countries-110m.json"
)
.
json
(
)
Insert cell
land
=
topojson
.
feature
(
world
,
world
.
objects
.
land
)
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
beagle
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
world
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
land
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML