formatted data for D3