Skip to content

Commit 5fbbac5

Browse files
committed
Enable dash styles for open markers
1 parent 65a0d87 commit 5fbbac5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/drawing/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,8 @@ drawing.singlePointStyle = function (d, sel, trace, fns, gd, pt) {
965965
}
966966
}
967967

968+
const lineDash = d.mld || (markerLine || {}).dash;
969+
if (lineDash) drawing.dashLine(sel, lineDash, lineWidth);
968970
if (d.om) {
969971
// open markers can't have zero linewidth, default to 1px,
970972
// and use fill color as stroke color
@@ -975,9 +977,6 @@ drawing.singlePointStyle = function (d, sel, trace, fns, gd, pt) {
975977
} else {
976978
sel.style('stroke-width', (d.isBlank ? 0 : lineWidth) + 'px');
977979

978-
const lineDash = d.mld || (markerLine || {}).dash;
979-
if(lineDash) drawing.dashLine(sel, lineDash, lineWidth);
980-
981980
var markerGradient = marker.gradient;
982981

983982
var gradientType = d.mgt;

0 commit comments

Comments
 (0)