Code I'm generating when learning d3.js