adding lubridate require in linegraph.