Skip to content

Instantly share code, notes, and snippets.

View Y4suyuki's full-sized avatar

Yasuyuki Ageishi Y4suyuki

  • USJ LLC
  • Osaka, Japan
View GitHub Profile

This example demonstrates how to add and remove nodes and links from a force layout. The graph initially appears with three nodes A, B and C connected in a loop. Three seconds later, node B is removed, along with the links B-A and B-C. At six seconds, node B is reintroduced, restoring the original links B-A and B-C. This example uses the general update pattern for data joins.

@Y4suyuki
Y4suyuki / README.md
Last active December 16, 2015 11:19 — forked from mbostock/.block

Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.