change graph on date changes