Using the start/enddate to set the x range of the graph