-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fixup sankey text and shadow #5531
Conversation
- this helps increase readability on overlaps
Looks great - as discussed let's just prevent MathJax in Sankey with |
Addressed in 2f38a9d. |
|
||
nodeLabel | ||
.style('text-shadow', function(d) { | ||
return d.horizontal ? svgTextUtils.makeTextShadow(1, '#fff') : 'none'; | ||
.attr('data-notex', 1) // prohibit tex interpretation until we can handle tex and regular text together |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nonblocking, but this isn't quite the rationale here, here we don't want tex because of shadows and positioning issues :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Looks great!
Started out as a bugfix to take into account
paper_bgcolor
issankey
text-shadow following #5506,We discovered that
textfont.color
was not able to control the color of labels on asankey
graph!It addition to those fixes this PR resolves #3742.
One could also pass
MathJax
; but (at the moment) the label positioning is not perfect in that case.Also vertical
sankey
graphs used to trim the text to force the labels inside the node.This behaviour is also changed in this PR and full labels are presented.
@plotly/plotly_js
cc: #5395