block by d3noob cbd9b4416b4b68e22359c54011c0bca0

Drag Group Test v4

Full Screen

This is an example set up to test the use of the d3.drag component.

The intention is to learn enough about d3.drag to integrate it into a sankey diagram for v4 similar to this example.

The start point was Mikes circle dragging examlpe [here] which I tried to integrate with the object+text drag implimentation here.

Tragically I can’t quite work out how to grab the ‘g’ element and will therefore use this block as an example for a question on Stack Overflow.

EDIT: Spoiler Alert: Solved by Dragon_Slayer. Solution bl.ock here.

index.html