datepicker to chart