Skip to content

Commit ee8bc3e

Browse files
committed
remove duplicate code as fillOne
1 parent b5765c4 commit ee8bc3e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/traces/pie/style_one.js

-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ module.exports = function styleOne(s, pt, trace, gd) {
99
var lineColor = castOption(line.color, pt.pts) || Color.defaultLine;
1010
var lineWidth = castOption(line.width, pt.pts) || 0;
1111

12-
// enforce the point color, when colors (with s) & the pattern shape are missing.
13-
// 'abuse' the color attribute, used in the Drawing component for bar trace type.
14-
var marker = trace.marker;
15-
if(marker.pattern) {
16-
if(!marker.colors || !marker.pattern.shape) marker.color = pt.color;
17-
} else {
18-
marker.color = pt.color;
19-
}
20-
2112
s.call(fillOne, pt, trace, gd)
2213
.style('stroke-width', lineWidth)
2314
.call(Color.stroke, lineColor);

0 commit comments

Comments
 (0)