You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2019/04/18 07:31:47 UTC
[incubator-echarts] branch fix-10304 created (now 58d2dce)
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a change to branch fix-10304
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.
at 58d2dce fix: last axis label duplicated, fix #10304
This branch includes the following new commits:
new 58d2dce fix: last axis label duplicated, fix #10304
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[incubator-echarts] 01/01: fix: last axis label duplicated,
fix #10304
Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch fix-10304
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 58d2dcee6fa206a0d547974b49ca3c43ef3d17f7
Author: Ovilia <zw...@gmail.com>
AuthorDate: Thu Apr 18 15:30:35 2019 +0800
fix: last axis label duplicated, fix #10304
---
src/coord/axisTickLabelBuilder.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/coord/axisTickLabelBuilder.js b/src/coord/axisTickLabelBuilder.js
index 2809d10..41ee163 100644
--- a/src/coord/axisTickLabelBuilder.js
+++ b/src/coord/axisTickLabelBuilder.js
@@ -322,7 +322,7 @@ function makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) {
addItem(tickValue);
}
- if (includeMaxLabel && tickValue !== ordinalExtent[1]) {
+ if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {
addItem(ordinalExtent[1]);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org