All examples By author By category About

d3noob

Drag Group Test v4

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.