add date functionality and changed the graph shape