Personal notes on using d3.js in various ways