This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch fix-18453
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 77ef25280e71d31ead013097da9240d24f8c5b95
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Mon Apr 3 18:18:16 2023 +0800

    fix(axis): show last tick for single data #18453
---
 src/coord/Axis.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coord/Axis.ts b/src/coord/Axis.ts
index a71051507..5a33a3397 100644
--- a/src/coord/Axis.ts
+++ b/src/coord/Axis.ts
@@ -302,7 +302,7 @@ function fixOnBandTicksCoords(
     let diffSize;
     if (ticksLen === 1) {
         ticksCoords[0].coord = axisExtent[0];
-        last = ticksCoords[1] = {coord: axisExtent[0]};
+        last = ticksCoords[1] = {coord: axisExtent[1]};
     }
     else {
         const crossLen = ticksCoords[ticksLen - 1].tickValue - 
ticksCoords[0].tickValue;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to