Updated the D3 plot code.