Skip to content

Commit b4d7ff3

Browse files
committed
fix opacity logic
1 parent b90fda1 commit b4d7ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/sankey/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
775775
.append('g')
776776
.classed(c.cn.sankeyNode, true)
777777
.call(updateNodePositions)
778-
.style('opacity', function(n) { return (!gd._context.staticPlot && n.partOfGroup) ? 0 : 1;});
778+
.style('opacity', function(n) { return (gd._context.staticPlot && !n.partOfGroup) ? 1 : 0;});
779779

780780
sankeyNode
781781
.call(attachPointerEvents, sankey, callbacks.nodeEvents)

0 commit comments

Comments
 (0)