Minor updates to the code. Changing the time range picker still breaks the d3...