to do d3.js graph