Skip to content

Commit 0f08952

Browse files
committed
supply a default link.label array, as the hover tooltip offsets text if a non-string falsey value is provided
1 parent 790d470 commit 0f08952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/sankey/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
3131
return Color.addOpacity(defaultNodePalette(i), 0.8);
3232
}));
3333

34-
coerce('link.label');
3534
coerce('link.source');
3635
coerce('link.target');
3736
coerce('link.value');
3837
coerce('link.line.color');
3938
coerce('link.line.width');
4039

40+
coerce('link.label', traceOut.link.value.map(function() {return '';}));
4141
coerce('link.color', traceOut.link.value.map(function() {
4242
return tinycolor(layout.paper_bgcolor).getLuminance() < 0.333 ?
4343
'rgba(255, 255, 255, 0.6)' :

0 commit comments

Comments
 (0)