more work on the d3 chart