add alternative to datetime type when generate linechart