Skip to content

Commit bbb3495

Browse files
committed
adjust labels of vertical sankey depending on node.line.width
1 parent 811bb20 commit bbb3495

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

src/traces/sankey/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
998998

999999
posY = (d.visibleHeight - blockHeight) / 2;
10001000
} else {
1001-
posY = TEXTPAD;
1001+
posY = d.nodeLineWidth / 2 + TEXTPAD;
10021002
posX = (d.visibleWidth - blockHeight) / 2;
10031003
}
10041004

60 Bytes
Loading
3 Bytes
Loading
-80 Bytes
Loading

0 commit comments

Comments
 (0)