add method of D3 reverse data binding