updated d3.js code in board statistics