We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74dbbc4 commit 5d0d930Copy full SHA for 5d0d930
src/components/legend/style.js
@@ -172,13 +172,14 @@ function styleBars(d) {
172
barpath.exit().remove();
173
barpath.each(function(d) {
174
var w = (d.mlw + 1 || markerLine.width + 1) - 1,
175
- p = d3.select(this);
+ p = d3.select(this),
176
+ d0 = d[0];
177
178
p.style('stroke-width', w + 'px')
- .call(Color.fill, d.mc || marker.color);
179
+ .call(Color.fill, d0.mc || marker.color);
180
181
if(w) {
- p.call(Color.stroke, d.mlc || markerLine.color);
182
+ p.call(Color.stroke, d0.mlc || markerLine.color);
183
}
184
});
185
0 commit comments