Skip to content

Commit 31bc2d6

Browse files
committed
Fix axis tick bug again
1 parent 60673ed commit 31bc2d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/axes/Axis.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,13 @@ export default {
389389
tickTextAnchor = "end";
390390
} else {
391391
tickTextAnchor = "start";
392-
}
392+
}
393+
} else {
394+
if(vm._side === SIDES.LEFT) {
395+
tickTextAnchor = "end";
396+
} else if(vm._side === SIDES.RIGHT) {
397+
tickTextAnchor = "start";
398+
}
393399
}
394400
395401
ticksZoomedIn.selectAll("text")

0 commit comments

Comments
 (0)