Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 03472fb

Browse filesBrowse files
committed
adjusting minimal node size
1 parent 8ad871d commit 03472fb
Copy full SHA for 03472fb

File tree

1 file changed

+1
-2
lines changed
Filter options

1 file changed

+1
-2
lines changed

‎src/traces/sankey/render.js

Copy file name to clipboardExpand all lines: src/traces/sankey/render.js
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.