Skip to content

Commit a4e8282

Browse files
committed
Fix scatter line issue
1 parent 9132eb6 commit a4e8282

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/traces/scatter/plot.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,16 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
259259
fullpath += 'Z' + thispath;
260260
revpath = thisrevpath + 'Z' + revpath;
261261
}
262-
if(subTypes.hasLines(trace) && pts.length > 1) {
263-
var lineJoin = tr.selectAll('.js-line').data([cdscatter]);
262+
}
264263

265-
lineJoin.enter()
266-
.append('path').classed('js-line', true).attr('d', thispath);
264+
if(subTypes.hasLines(trace) && pts.length > 1) {
265+
var lineJoin = tr.selectAll('.js-line').data([cdscatter]);
267266

268-
transition(lineJoin).attr('d', thispath);
269-
}
270-
}
267+
lineJoin.enter()
268+
.append('path').classed('js-line', true).attr('d', fullpath);
271269

270+
transition(lineJoin).attr('d', fullpath);
271+
}
272272
//lineJoin.exit().remove();
273273

274274
if(ownFillEl3) {

0 commit comments

Comments
 (0)