You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2019/11/07 13:12:14 UTC
[incubator-echarts] 02/02: fix: remove useless code.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 756a7d133de0e18051c4cbae88af5c1a46c8ad24
Author: SHUANG SU <su...@gmail.com>
AuthorDate: Thu Nov 7 21:08:48 2019 +0800
fix: remove useless code.
---
src/coord/Axis.js | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/coord/Axis.js b/src/coord/Axis.js
index ef5adac..9a34a3e 100644
--- a/src/coord/Axis.js
+++ b/src/coord/Axis.js
@@ -312,11 +312,6 @@ function fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) {
each(ticksCoords, function (ticksItem) {
ticksItem.coord -= shift / 2;
- var tickCategoryInterval = 0;
- // Avoid split a single data item when odd interval.
- if (tickCategoryInterval % 2 > 0) {
- ticksItem.coord -= shift / ((tickCategoryInterval + 1) * 2);
- }
});
var dataExtent = axis.scale.getExtent();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org