Platform
Resources
Pricing
Sign in
Get started
johnfischbeck
Workspace
Fork
Published
By
johnfischbeck
Edited
May 6, 2020
1 fork
3
Insert cell
Insert cell
Insert cell
function
autoBox
(
)
{
document
.
body
.
appendChild
(
this
)
;
const
{
x
,
y
,
width
,
height
}
=
this
.
getBBox
(
)
;
document
.
body
.
removeChild
(
this
)
;
return
[
x
,
y
,
width
,
height
]
;
}
Insert cell
data
=
FileAttachment
(
"FBM-Flare-ltd-2k@2.json"
)
.
json
(
)
Insert cell
width
=
20000
Insert cell
radius
=
width
/
2
Insert cell
tree
=
d3
.
cluster
(
)
.
size
(
[
2
*
Math
.
PI
,
radius
-
100
]
)
Insert cell
d3
=
require
(
"d3@5"
)
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
chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
autoBox
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
width
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
radius
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
tree
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