modified for chart date asc