Tree, Cluster | D3 | Observable
ojs
ojs
ojs
ojs
Comments (4)
rrowlands
Sep 1, 2020
this.getBBox is undefined?
Mike Bostock
Sep 1, 2020
this here is an SVG element (because autoBox is passed to svg.attr in the cell above).
https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox
Reply
rrowlands
Sep 1, 2020
Width is undefined here
Mike Bostock
Sep 1, 2020
width is part of the Observable standard library (but you can define a fixed width if you prefer not to have a responsive chart):
https://github.com/observablehq/stdlib/blob/master/README.md#width
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
D3
Mike Bostock
80
Reply
Reply
Add comment
Subscribe to notifications
599
Tree, Cluster | D3 | Observable