From fe7a3d615584b06a9d0c31b18e7487e436c6ef21 Mon Sep 17 00:00:00 2001 From: byeongwan Date: Tue, 27 Sep 2022 16:22:26 +0900 Subject: [PATCH] =?UTF-8?q?[#1289]=20Chart=20>=20Scatter=20>=20Y=EC=B6=95?= =?UTF-8?q?=20=EC=B5=9C=EB=8C=93=EA=B0=92=20=EC=9D=B4=EC=83=81=EC=9D=98=20?= =?UTF-8?q?=EA=B0=92=20=ED=91=9C=EC=8B=9C=20=EA=B8=B0=EB=8A=A5=20-=20Y?= =?UTF-8?q?=EC=B6=95=20max=EA=B0=92=20+=20=EA=B8=B0=EB=8A=A5=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chart/scale/scale.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/chart/scale/scale.js b/src/components/chart/scale/scale.js index 30db8f56c..cd351718a 100644 --- a/src/components/chart/scale/scale.js +++ b/src/components/chart/scale/scale.js @@ -340,14 +340,12 @@ class Scale { ctx.lineTo(linePosition, offsetCounterPoint); } } else { - if (ix === steps) { - linePosition -= 1; - labelText += this.options.displayOverflow ? '+' : ''; - } - labelPoint = this.position === 'left' ? offsetPoint - 10 : offsetPoint + 10; ctx.fillText(labelText, labelPoint, labelCenter); + if (ix === steps) { + linePosition -= 1; + } if (ix !== 0 && this.showGrid) { ctx.moveTo(offsetPoint, linePosition);