Added option to change the graph duration to 3, 6 and 24 hours.