line chart working with dates