Resample function after edit
Updates small preview graph