Skip to content

Commit 452049e

Browse files
committed
fix arg name - first arg is d not trace
1 parent bd1d6bd commit 452049e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/legend/draw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ function _draw(gd, legendObj) {
351351
}], gd);
352352
}
353353

354-
function getTraceWidth(trace, legendObj, textGap) {
355-
var legendItem = trace[0];
354+
function getTraceWidth(d, legendObj, textGap) {
355+
var legendItem = d[0];
356356
var legendWidth = legendItem.width;
357357

358358
var traceLegendWidth = legendItem.trace.legendwidth || legendObj.entrywidth;

0 commit comments

Comments
 (0)