add time unit option to line chart