Adapted curves to coordinate restrictions in Chart.plot()