Added generalizing D3 examples for handling resize