block by bjtucker 5cc43014c1a2ec6cb878

Simple example of reusable d3 plugin.

Full Screen

This as-simple-as-possible example tries to demonstrate Mike Bostock’s pattern “Towards Reusable Charts” http://bost.ocks.org/mike/chart/ for d3 plugins that are composite shapes.

index.html

textblock.js