You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/07/31 10:02:58 UTC
[incubator-echarts] branch next updated: fix(axis): fix hour
interval in time axis
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/next by this push:
new daf1baa fix(axis): fix hour interval in time axis
daf1baa is described below
commit daf1baa61b37b144db48c81faece0e5462377c34
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jul 31 18:02:40 2020 +0800
fix(axis): fix hour interval in time axis
---
src/scale/Time.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/scale/Time.ts b/src/scale/Time.ts
index cda3fd2..77fce2b 100644
--- a/src/scale/Time.ts
+++ b/src/scale/Time.ts
@@ -386,7 +386,7 @@ function getMonthInterval(approxInterval: number) {
function getHourInterval(approxInterval: number) {
approxInterval /= ONE_HOUR;
- return approxInterval > 12 ? 11
+ return approxInterval > 12 ? 12
: approxInterval > 6 ? 6
: approxInterval > 3.5 ? 4
: approxInterval > 2 ? 2 : 1;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org