add sample AM_PM function for x-axis on lineChart