getting ready for d3 chart