Fixed a bug that destroyed the graphs. I needed to use .getDate() instead of getDay()