Adding or removing a node changes the topology, so sankey.update(data) morphs through it: the new Storage branch grows out of its source nodes while the survivors slide to their new places, and it retracts and dissolves when removed.
sankey.update(data)