Making graph with dates