Working D3 visualization and transitions