Infrastructure for the monthly/yearly graphs