Fixed scrollbar bug while panning with the right arrow key.
Fixed data persistance issue and inconsistency between accumulated and day data points on days where there is no data recieved. Refactored code for easier reading and efficiency.