Platform
Solutions
Resources
Pricing
Sign in
Sign up
Ariel Núñez
Workspace
Fork
Published
By
Ariel Núñez
Edited
Mar 7, 2018
Fork of
Peirce Quincuncial
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Insert cell
plot
=
{
const
svg
=
d3
.
select
(
DOM
.
svg
(
width
,
height
)
)
.
style
(
"width"
,
"100%"
)
.
style
(
"height"
,
"auto"
)
;
const
basemapGroup
=
svg
.
append
(
"g"
)
.
attr
(
"class"
,
"base"
)
;
return
ready
(
svg
,
basemapGroup
,
land
,
graticule
)
.
node
(
)
}
Insert cell
Insert cell
path
=
d3
.
geoPath
(
)
.
projection
(
d3
.
geoPolyhedralWaterman
(
)
)
Insert cell
height
=
width
Insert cell
graticule
=
d3
.
geoGraticule10
(
)
Insert cell
land
=
topojson
.
feature
(
world
,
world
.
objects
.
land
)
Insert cell
world
=
d3
.
json
(
"https://unpkg.com/world-atlas@1/world/50m.json"
)
Insert cell
topojson
=
require
(
"topojson-client@3"
)
Insert cell
d3
=
require
(
"d3"
,
"d3-fetch@1"
,
"d3-geo@1"
,
"d3-geo-projection@2?"
)
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
Compare fork
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
plot
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
ready
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
path
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
graticule
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
world
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
topojson
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML