Skip to content

Commit ebc1a10

Browse files
committed
explicitly, rather than implicitly, default choropleth linewidth to 1
1 parent 98adfae commit ebc1a10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/drawing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ drawing.lineGroupStyle = function(s, lw, lc, ld) {
112112
};
113113

114114
drawing.dashLine = function(s, dash, lineWidth) {
115-
lineWidth = lineWidth || 0;
115+
lineWidth = +lineWidth || 0;
116116
var dlw = Math.max(lineWidth, 3);
117117

118118
if(dash === 'solid') dash = '';

src/traces/choropleth/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = extendFlat({}, {
3737
marker: {
3838
line: {
3939
color: ScatterGeoMarkerLineAttrs.color,
40-
width: ScatterGeoMarkerLineAttrs.width
40+
width: extendFlat({}, ScatterGeoMarkerLineAttrs.width, {dflt: 1})
4141
}
4242
},
4343
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {

src/traces/choropleth/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ plotChoropleth.style = function(geo) {
165165
d3.select(this)
166166
.attr('fill', function(pt) { return sclFunc(pt.z); })
167167
.call(Color.stroke, pt.mlc || markerLine.color)
168-
.call(Drawing.dashLine, '', pt.mlw || markerLine.width);
168+
.call(Drawing.dashLine, '', pt.mlw || markerLine.width || 0);
169169
});
170170
});
171171
};

0 commit comments

Comments
 (0)