Skip to content

Commit ee5bf55

Browse files
committed
Fix strokeDasharray, update docs
1 parent 4637c36 commit ee5bf55

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/drawFunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function formatXAxis(g, xDividerConfig) {
161161
g.selectAll('.tick line')
162162
.attr('stroke', xDividerConfig.color ?? colors.border)
163163
.attr('stroke-width', xDividerConfig.strokeWidth ?? 0.5)
164-
.attr('stroke-dasharray', xDividerConfig.dashArray ?? '2,2')
164+
.attr('stroke-dasharray', xDividerConfig.strokeDasharray ?? '2,2')
165165
} else {
166166
g.selectAll('.tick line').remove()
167167
}

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ type XDividerTick = {
8484
*/
8585
strokeWidth?: number
8686
/**
87+
* Stroke dash array for the full-height-tick lines
88+
* See: https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray
8789
* Defaults to '2,2'
8890
*/
8991
strokeDasharray?: string

0 commit comments

Comments
 (0)