How to convert Tidy Tree to straight Javascript plus d3

You can’t directly use Observable notebook code as JS, since …

So you’ll have to do some conversion. A while back, I linked to some (hopefully helpful) resources for Observable to JS porting in this post:

See particularly the two forum posts of mine I also linked there:

2 Likes