modified d3 to show sleep data