Skip to content

Commit 013508b

Browse files
committed
adjusting minimal node size
1 parent d99ae9c commit 013508b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/traces/sankey/render.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function nodeModel(uniqueKeys, d, n) {
182182
zoneThicknessPad = c.nodePadAcross,
183183
zoneLengthPad = d.nodePad / 2,
184184
visibleThickness = n.dx,
185-
visibleLength = Math.max(1, n.dy);
185+
visibleLength = Math.max(0.5, n.dy);
186186

187187
var basicKey = n.label;
188188
var foundKey = uniqueKeys[basicKey];
@@ -413,7 +413,6 @@ function snappingForce(sankeyNode, forceKey, nodes, d) {
413413
}
414414

415415
// scene graph
416-
417416
module.exports = function(svg, styledData, layout, callbacks) {
418417
var sankey = svg.selectAll('.sankey')
419418
.data(styledData

0 commit comments

Comments
 (0)