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
Observable
Sign in
D3
Mike Bostock
80
Reply
Reply
Add comment
Subscribe to notifications
598
Tree, Cluster | D3 | Observable