put D3 function into Components NS