added functionality to make temperature graph use past 5 days