chart now updates with new data once a new date is selected in the datepicker