some random snippets on the basics of creating d3 visualizations