Minor tweaks to prevent default and console.log events.
Modularized and removed unessecary code.
Fixed accumulation data to keep dates constant if there was no data for the days. This also fixed data consistency issues because now there should be equal numbers of points between day and accumulated graphs.