Platform
Resources
Pricing
Sign in
Get started
Chris Henrick
Maps, Data, Viz, UX, Design
Workspace
Fork
Published
maps and geo
By
Chris Henrick
Edited
Jan 29, 2021
1 fork
12 stars
maps and geo
Carto SQL API (v3)
Hello, Carto Maps API (v3)
Hello, Mapbox Geocoder API
Hello, Polyline
ArcGIS JS API: Custom Elevation Profile Chart
ArcGIS JS API: GPX route overlay from file upload
ArcGIS JS API: GPX Route Mapper
ArcGIS JS API: GPX route overlay
Hello, ArcGIS JS SDK
% Chance GOP Takes House Seat in November (Diverging Scale)
Location Map using d3-geo and d3-tile
SWD: Internet Access Choropleth Makeover
U.S. County Population Density Choropleth
U.S. Hexagon Map SVG with Data Joined
Reusable U.S. Choropleth Map
Hello, CARTO Maps API
U.S. Coronavirus Cumulative Cases Animated Map
NY Times COVID-19 Cases by Race/Ethnicity
SF Bay Area Jobs: Quantiles
CARTO-VL: Update Vis Layer
Hello, CARTO-VL
Autocomplete Search
Leaflet Pattern Fills
California Chronic Drinking Water Safety Violations
d3.geoIdentity
Lat Lon or Lon Lat?
Implementing an SVG Zoom Animation Without a D3 Transition
Household Internet Access by Population Density
Dorling Cartogram Circle Packs
Golden Gate Bathymetry Contours
U.S. County Centroids
U.S. Broadband Internet Access
SF Bay Area Jobs Viz SVG Exporter v2
Hello, NYC Geosearch API!
Mapping Airline Data From OmniSciDB
Tutorial: MapBoxGL HexBin Map
SF Bay Area Job Density
SF Bay Area Basemap
MapD Connector NPM test
Insert cell
Insert cell
Insert cell
map
=
{
const
svg
=
DOM
.
svg
(
960
,
960
)
;
d3
.
select
(
svg
)
.
attr
(
"viewBox"
,
[
0
,
0
,
n
,
m
]
)
.
selectAll
(
"path"
)
.
data
(
contoured
)
.
enter
(
)
.
append
(
"path"
)
.
attr
(
"d"
,
d3
.
geoPath
(
)
)
.
attr
(
"fill"
,
d
=>
color
(
d
.
value
)
)
;
return
svg
;
}
Insert cell
contoured
=
contours
(
floatArray
)
Insert cell
color
=
d3
.
scaleSequential
(
d3
.
interpolateMagma
)
.
domain
(
extent
)
Insert cell
contours
=
d3
.
contours
(
)
.
size
(
[
n
,
m
]
)
.
thresholds
(
thresholds
||
20
)
Insert cell
Insert cell
Insert cell
n
=
image
.
getWidth
(
)
Insert cell
m
=
image
.
getHeight
(
)
Insert cell
extent
=
d3
.
extent
(
floatArray
)
Insert cell
floatArray
=
new
Float32Array
(
values
[
0
]
)
.
map
(
d
=>
d
===
noDataValue
?
0
:
d
)
;
Insert cell
values
=
image
.
readRasters
(
)
Insert cell
image
=
tiff
.
getImage
(
)
Insert cell
tiff
=
GeoTIFF
.
fromUrl
(
"https://s3-us-west-2.amazonaws.com/data.chrishenrick.com/sf_bay_area/Bathymetry_OffshoreSanFrancisco_resampled2.tif"
)
.
catch
(
error
=>
console
.
log
(
error
)
)
Insert cell
Insert cell
Insert cell
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
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
thresholds
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
map
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
contoured
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
color
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
contours
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
noDataValue
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
n
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
m
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
extent
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
floatArray
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
values
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
tiff
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
GeoTIFF
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML