block by cpbotha 5073718

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