Updated graph to use date