D3 line chart integrated with backend dataset