making graph to use te time line