Chaining methods in D3 , an attempt