Skip to content

Commit 8308111

Browse files
committed
unified hoverlabel: only apply bar-like styling of symbol to waterfall
1 parent bca4a70 commit 8308111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ module.exports = function style(s, gd, legend) {
291291
function styleWaterfalls(d) {
292292
var trace = d[0].trace;
293293

294-
if(d[0]._distinct && d[0].dir && trace[d[0].dir] && trace[d[0].dir].marker) {
294+
if(d[0]._distinct && trace.type === 'waterfall') {
295295
var cont = d[0].trace[d[0].dir].marker;
296296
d[0].mc = cont.color;
297297
d[0].mlw = cont.line.width;

0 commit comments

Comments
 (0)