Sample code for D3.js layouts.