Creating a curve through div points on a graph