block by eesur 6130690583e525d61f44abab61900db4

d3js | circles update with force layout

Full Screen

based of this really nice example: pusher.com/dynamic-graphs-with-d3-js/

data generated in this format, looping over red, green, blue and incrementing the id:

render([{
    id: 1,
    color: 'red'
}, {
    id: 2,
    color: 'green'
}, {
    id: 3,
    color: 'blue'
}]);

index.html

script-compiled.js