Adding back dynamic widths via element.offsetWidth and adding hash sign for d3 selector.