added datetime column to loaded data
refactor: removed function to make code more concise
implemented second graph