Populating d3 data on client