d3 demo codes and decorator pattern

d3: force-graph
design pattern: decorator