You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "sugar258596 (via GitHub)" <gi...@apache.org> on 2023/06/16 06:59:24 UTC

[GitHub] [echarts] sugar258596 opened a new issue, #18774: [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊

sugar258596 opened a new issue, #18774:
URL: https://github.com/apache/echarts/issues/18774

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   。。
   
   ### Steps to Reproduce
   
   为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊
   
   ### Current Behavior
   
   为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊
   
   ### Expected Behavior
   
   为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] sugar258596 commented on issue #18774: [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊

Posted by "sugar258596 (via GitHub)" <gi...@apache.org>.
sugar258596 commented on issue #18774:
URL: https://github.com/apache/echarts/issues/18774#issuecomment-1594274706

   虽然不会有副作用,但是只有一条数据的情况会使y轴上的值出现重复
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人: "Wenli ***@***.***&gt;; 
   发送时间: 2023年6月16日(星期五) 下午3:57
   收件人: ***@***.***&gt;; 
   抄送: ***@***.***&gt;; ***@***.***&gt;; 
   主题: Re: [apache/echarts] [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊 (Issue #18774)
   
   
   
   
   
    
   因为 tick、label 等的布局都会用到。formatter 原则上应使用纯函数,不要有副作用。
    
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you were mentioned.Message ID: ***@***.***&gt;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] Ovilia commented on issue #18774: [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18774:
URL: https://github.com/apache/echarts/issues/18774#issuecomment-1594271916

   因为 tick、label 等的布局都会用到。formatter 原则上应使用纯函数,不要有副作用。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18774: [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18774:
URL: https://github.com/apache/echarts/issues/18774#issuecomment-1594202729

   @sugar258596 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] Why is the method in axisLabel called six times when there is only one piece of data?
   
   **BODY**
   
   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   . .
   
   ### Steps to Reproduce
   
   Why is the method in axisLabel under the yAxis attribute called six times when there is only one piece of data?
   
   ### Current Behavior
   
   Why is the method in axisLabel under the yAxis attribute called six times when there is only one piece of data?
   
   ### Expected Behavior
   
   Why is the method in axisLabel under the yAxis attribute called six times when there is only one piece of data?
   
   ### Environment
   
   ```markdown
   - OS:
   -Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   Why is the method in axisLabel under the yAxis attribute called six times when there is only one piece of data?
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊 [echarts]

Posted by "sugar258596 (via GitHub)" <gi...@apache.org>.
sugar258596 closed issue #18774: [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊
URL: https://github.com/apache/echarts/issues/18774


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18774: [Bug] 为什么在数据只有一条的情况下yAxis属性下axisLabel中方法会被调用六次啊

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18774:
URL: https://github.com/apache/echarts/issues/18774#issuecomment-1594294967

   @sugar258596 Please provide a demo for the issue either with [Official Editor](https://echarts.apache.org/examples/editor.html), [CodePen](https://codepen.io/Ovilia/pen/dyYWXWM), [CodeSandbox](https://codesandbox.io/s/echarts-basic-example-template-mpfz1s) or [JSFiddle](https://jsfiddle.net/plainheart/e46ozpqj/7/).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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