All sources are available on Github. Go to the Gallery. CC (BY) N. Lambert (neocarto).
This example shows how to design an interactive map with proportionnal squares with D3.