Open mulderp opened 8 years ago
fix example to:
vis.selectAll("circle .nodes")
.data(nodes)
.enter()
.append("svg:circle")
.attr('class', 'nodes')
.attr("cx", function(d) {
added some more links: fd37b66
add link to d3 documentation
basic docs:
https://medium.com/@c_behrens/enter-update-exit-6cafc6014c36#.e10u6e8dd
links to enter-remove- pattern
http://stackoverflow.com/questions/22621865/how-to-update-an-svg-path-with-d3-js
nested groups, an interesting approach: http://codepen.io/philippbosch/pen/lEjzb
also, appending groups of elements is often helpful: http://stackoverflow.com/questions/13615381/d3-add-text-to-circle
http://codepen.io/Escu/pen/vLaobV - use of sliders
use of buttons would be nice too.
explain better how selections work, e.g. http://bost.ocks.org/mike/selection/
selectAll('circle.nodes') can be simpler
show example of replacing e.g. circles with rect