basic-crossfilter: DRY chart element creation and switch to d3 margin convention.