Little utility D3 functions