D3 chart in react js