10000 Fixup sankey text and shadow by archmoj · Pull Request #5531 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Fixup sankey text and shadow #5531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 5, 2021
Prev Previous commit
Next Next commit
take into account paper_bgcolor in sankey text shadow
  • Loading branch information
archmoj committed Mar 2, 2021
commit d8863d858da7f267443616417b60b9e676141210
2 changes: 1 addition & 1 deletion src/traces/sankey/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {

nodeLabel
.style('text-shadow', function(d) {
return d.horizontal ? svgTextUtils.makeTextShadow('#fff') : 'none';
return d.horizontal ? svgTextUtils.makeTextShadow(gd._fullLayout.paper_bgcolor) : 'none';
})
.each(function(d) {Drawing.font(nodeLabel, d.textFont);});

Expand Down
0