From 70eb03dd745bae3a3834056d241a11ac04e0ec7c Mon Sep 17 00:00:00 2001 From: MichaelZinsmaier Date: Sun, 30 Dec 2012 19:15:39 +0100 Subject: [PATCH] resolved the "first datapoint is not properly connected" issue --- curvedLines.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/curvedLines.js b/curvedLines.js index af2a5ae..aa8fa12 100644 --- a/curvedLines.js +++ b/curvedLines.js @@ -298,6 +298,9 @@ xnew[0] = xdata[0]; ynew[0] = ydata[0]; + result.push(xnew[0]); + result.push(ynew[0]); + for ( j = 1; j < num; ++j) { xnew[j] = xnew[0] + j * step;