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/09/21 10:41:13 UTC

[incubator-echarts] branch next updated: fix(createScale): make Model#getNeedCrossZero optional in createScale.

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 e60e410  fix(createScale): make Model#getNeedCrossZero optional in createScale.
e60e410 is described below

commit e60e41087ce294047477009434479b6d0189e058
Author: pissang <bm...@gmail.com>
AuthorDate: Mon Sep 21 18:40:55 2020 +0800

    fix(createScale): make Model#getNeedCrossZero optional in createScale.
---
 src/coord/scaleRawExtentInfo.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coord/scaleRawExtentInfo.ts b/src/coord/scaleRawExtentInfo.ts
index 9f90b1a..9a71f4a 100644
--- a/src/coord/scaleRawExtentInfo.ts
+++ b/src/coord/scaleRawExtentInfo.ts
@@ -96,7 +96,7 @@ export class ScaleRawExtentInfo {
         this._dataMax = dataExtent[1];
 
         const isOrdinal = this._isOrdinal = scale.type === 'ordinal';
-        this._needCrossZero = model.getNeedCrossZero();
+        this._needCrossZero = model.getNeedCrossZero && model.getNeedCrossZero();
 
         const modelMinRaw = this._modelMinRaw = model.get('min', true);
         if (isFunction(modelMinRaw)) {


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