Skip to content

Commit

Permalink
[#1289] Chart > Scatter > Y축 최댓값 이상의 값 표시 기능
Browse files Browse the repository at this point in the history
- Y축 max값 + 기능 제거
  • Loading branch information
byeongwan committed Sep 27, 2022
1 parent 89d02ca commit fe7a3d6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/chart/scale/scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe7a3d6

Please sign in to comment.