🏠 back to Observable

recovering simple network functionality

Hi all,
I had a few old visualizations I would like to revive that relied on old d3 libraries. In particular, I had some “simple networks” (not force directed) that used d3plus.viz() loading


    <script src="//d3plus.org/js/d3.js"></script>
    <script src="//d3plus.org/js/d3plus.js"></script>

and the key code was

var visualization = d3.viz()
    .container("#viz")  
 .type("network")   
    .data(data)  
    .nodes(positions)        
    .edges(connections)
    .color("color")
    .size("size") 
    .id("name")        
    .draw()       

Can this functionality be recovered with the new libraries? I have tried playing around with arc diagrams and bevel edge bundlings but with little success (top hard to get the circle layout for arcs, although i loved the idea of being able to reorder the nodes)

This might help you select an older but working version of D3.