1

I'm attempting to work up to a smoothly animated Sankey diagram in this codesandbox but right now I'm having trouble even just abruptly redrawing it. I have attempted to remove nodes, links & gradients via the typical .enter() and .exit() methods, but it seems like the only way to actually get rid of previously drawn rects, paths etc. is to go scorched-earth like so: lines 130-135 of index.js in the linked codesandbox

If I comment those out and e.g., switch from the 'everybody' view to the 'changed ppl only' view, or use the arrow buttons to navigate between the 2 months worth of data, nothing in my svg seems to change.

As you can maybe see from the sandbox, there aren't any errors--just no updates.

Roy Pardee
  • 196
  • 2
  • 12

0 Answers0