Skip to content

Commit 930e4c8

Browse files
committed
do not coerce hoverlabel if it's undefined at trace level
1 parent 7f60f6e commit 930e4c8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/plots/plots.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,10 +1171,12 @@ plots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, trac
11711171
traceOut._dfltShowLegend = false;
11721172
}
11731173

1174-
Registry.getComponentMethod(
1175-
'fx',
1176-
'supplyDefaults'
1177-
)(traceIn, traceOut, defaultColor, layout);
1174+
if(_module && _module.attributes.hoverlabel !== undefined) {
1175+
Registry.getComponentMethod(
1176+
'fx',
1177+
'supplyDefaults'
1178+
)(traceIn, traceOut, defaultColor, layout);
1179+
}
11781180

11791181
// TODO add per-base-plot-module trace defaults step
11801182

src/traces/parcoords/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ var templatedArray = require('../../plot_api/plot_template').templatedArray;
2020
module.exports = {
2121
domain: domainAttrs({name: 'parcoords', trace: true, editType: 'calc'}),
2222

23+
hoverlabel: undefined,
24+
2325
labelfont: fontAttrs({
2426
editType: 'calc',
2527
description: 'Sets the font for the `dimension` labels.'

0 commit comments

Comments
 (0)