How to divide the curve by the varying distance?

Yes, I was also thinking @anon39580149 solution was suitable. But I could not use it for the curve i have.


I am not sure what is the problem. It does not react even if I change the slider numbers.