Skip to content

Commit 811bb20

Browse files
committed
apply text-shadow effect for vertical sankey as well
- this helps increase readability on overlaps
1 parent 17a1df7 commit 811bb20

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

src/traces/sankey/render.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -976,9 +976,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
976976
Drawing.font(e, d.textFont);
977977
svgTextUtils.convertToTspans(e, gd);
978978
})
979-
.style('text-shadow', function(d) {
980-
return d.horizontal ? svgTextUtils.makeTextShadow(gd._fullLayout.paper_bgcolor) : 'none';
981-
})
979+
.style('text-shadow', svgTextUtils.makeTextShadow(gd._fullLayout.paper_bgcolor))
982980
.attr('text-anchor', function(d) {
983981
return (d.horizontal && d.left) ? 'end' : 'start';
984982
})
25.1 KB
Loading
8.16 KB
Loading
Loading

0 commit comments

Comments
 (0)