Skip to content

Commit 798fdd7

Browse files
committed
fix
1 parent b0d15ef commit 798fdd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/core.scale.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,11 +1414,11 @@ export default class Scale extends Element {
14141414

14151415
if (me.isHorizontal()) {
14161416
x1 = _alignPixel(chart, me.left, axisWidth) - axisWidth / 2;
1417-
x2 = _alignPixel(chart, me.right, lastLineWidth) - axisWidth / 2;
1417+
x2 = _alignPixel(chart, me.right, lastLineWidth) - lastLineWidth / 2;
14181418
y1 = y2 = borderValue;
14191419
} else {
14201420
y1 = _alignPixel(chart, me.top, axisWidth) - axisWidth / 2;
1421-
y2 = _alignPixel(chart, me.bottom, lastLineWidth) - axisWidth / 2;
1421+
y2 = _alignPixel(chart, me.bottom, lastLineWidth) - lastLineWidth / 2;
14221422
x1 = x2 = borderValue;
14231423
}
14241424
drawLine(

0 commit comments

Comments
 (0)