Skip to content

Commit c4e0861

Browse files
committed
Override stroke-dasharray attribute in XY chart if option has dataLineDashes
1 parent 52bf80e commit c4e0861

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/XY.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class XY {
150150
.attr('d', (d) => theLine(d.data))
151151
.attr('fill', 'none')
152152
.attr('stroke', (d, i) => (this.options.dataColors ? this.options.dataColors[i] : colors[i]))
153+
.attr('stroke-dasharray', (d, i) => (this.options.dataLineDashes ? this.options.dataLineDashes[i] : ''))
153154
.attr('filter', this.filter);
154155
}
155156

0 commit comments

Comments
 (0)