From b91cc42ba2fe9ee55336fd0f1039da07a3cf286d Mon Sep 17 00:00:00 2001 From: MichaelZinsmaier Date: Sun, 30 Dec 2012 19:11:19 +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 249add2..206f464 100644 --- a/curvedLines.js +++ b/curvedLines.js @@ -365,6 +365,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;