Notebooks 2.0 is here.
Read the preview announcement
Platform
Resources
Pricing
Sign in
Get started
David B.
Data viz engineer | twitter.com/dbumbeishvili
Workspace
Fork
Published
3 collections
By
David B.
Edited
Jun 21, 2018
Fork of
deck.gl HexagonLayer Example
•
2 forks
10 stars
Insert cell
Insert cell
Insert cell
Insert cell
container
=
html
`<div style="height:600px"></div>`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
deckgl
=
{
return
new
deck
.
DeckGL
(
{
container
,
map
:
mapboxgl
,
mapboxAccessToken
:
''
,
mapStyle
:
'https://free.tilehosting.com/styles/darkmatter/style.json?key=U0iNgiZKlYdwvgs9UPm1'
,
longitude
:
-
1.4157
,
latitude
:
52.2324
,
zoom
:
6
,
minZoom
:
5
,
maxZoom
:
15
,
pitch
:
40.5
}
)
;
}
Insert cell
{
const
hexagonLayer
=
new
deck
.
HexagonLayer
(
{
id
:
'heatmap'
,
colorRange
,
data
,
elevationRange
:
[
0
,
1000
]
,
elevationScale
:
250
,
extruded
:
true
,
getPosition
:
d
=>
[
d
.
lng
,
d
.
lat
]
,
opacity
:
1
,
radius
,
upperPercentile
,
lightSettings
}
)
;
deckgl
.
setProps
(
{
layers
:
[
hexagonLayer
]
}
)
;
return
hexagonLayer
;
}
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
Compare fork
Fork
View
Export
Listed in...
3D
David B.
Visualizations
David B.
Vis.gl
David B.
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
container
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
data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
radiusSlider
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
radius
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
upperPercentileSlider
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
upperPercentile
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
colorRange
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lightSettings
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
deckgl
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
mapboxgl
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
deck
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
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML