Skip to content

Commit 321cd17

Browse files
committed
Modify scatter fill behavior
1 parent 2861127 commit 321cd17

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Diff for: src/traces/scatter/plot.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
204204

205205
// initialize line join data / method
206206
var segments = [],
207-
lineSegments = [],
208207
makeUpdate = Lib.noop;
209208

210209
ownFillEl3 = trace._ownFill;
@@ -270,10 +269,6 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
270269
pt1 = lastSegment[lastSegment.length - 1];
271270
}
272271

273-
lineSegments = segments.filter(function(s, i) {
274-
return s.length > 1 || i === segments.length - 1 || i === 0;
275-
});
276-
277272
makeUpdate = function(isEnter) {
278273
return function(pts) {
279274
thispath = pathfn(pts);
@@ -312,7 +307,7 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
312307
};
313308
}
314309

315-
var lineJoin = tr.selectAll('.js-line').data(lineSegments);
310+
var lineJoin = tr.selectAll('.js-line').data(segments);
316311

317312
transition(lineJoin.exit())
318313
.style('opacity', 0)

Diff for: test/image/baselines/scatter_fill_corner_cases.png

292 Bytes
Loading

0 commit comments

Comments
 (0)