Skip to content

Commit 733d2b3

Browse files
committed
rm calcdata items logic in box legend style
- as box traces don't have arrayOk style attribute at the moment
1 parent 5d0d930 commit 733d2b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/legend/style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ function styleBoxes(d) {
195195
.attr('transform', 'translate(20,0)');
196196
pts.exit().remove();
197197
pts.each(function(d) {
198-
var w = (d.lw + 1 || trace.line.width + 1) - 1,
198+
var w = trace.line.width,
199199
p = d3.select(this);
200200

201201
p.style('stroke-width', w + 'px')
202-
.call(Color.fill, d.fc || trace.fillcolor);
202+
.call(Color.fill, trace.fillcolor);
203203

204204
if(w) {
205-
p.call(Color.stroke, d.lc || trace.line.color);
205+
p.call(Color.stroke, trace.line.color);
206206
}
207207
});
208208
}

0 commit comments

Comments
 (0)