Fixed logic for deciding if the time or date should be shown on the
graph's x-axis.