Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix issue where some scatter traces would lose fill after series of h…
…ide/show operations in legend
  • Loading branch information
emilykl committed Dec 9, 2025
commit 13d013d8bab7c02a56b99760cef32253797df9a1
7 changes: 4 additions & 3 deletions src/traces/scatter/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ function createFills(gd, traceJoin, plotinfo) {

var trace = d[0].trace;

trace._ownFill = null;
trace._nextFill = null;

var fillData = [];
if(trace._ownfill) fillData.push('_ownFill');
if(trace._nexttrace) fillData.push('_nextFill');
Expand All @@ -91,9 +94,7 @@ function createFills(gd, traceJoin, plotinfo) {

fillJoin.enter().append('g');

fillJoin.exit()
.each(function(d) { trace[d] = null; })
.remove();
fillJoin.exit().remove();

fillJoin.order().each(function(d) {
// make a path element inside the fill group, just so
Expand Down