You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/06/11 14:06:31 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18749: [Bug] 在动画过程中无法获取endLabel的坐标位置[急,急,急]

echarts-bot[bot] commented on issue #18749:
URL: https://github.com/apache/echarts/issues/18749#issuecomment-1586179126

   @liubin595338764 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] The coordinate position of endLabel cannot be obtained during the animation process [urgent, urgent, urgent]
   
   **BODY**
   
   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://www.pionex.com/static/media/grid_zhtw.b27dae30.gif
   
   ### Steps to Reproduce
   
   null
   
   ### Current Behavior
   
   As shown in the figure, I set the dot of endLabel in the animation effect, but I can't get the real-time position of endLabel during the animation;
   Because I need to calculate the position of the horizontal line based on the coordinates of endLabel;
   
   Anxious, troublesome pointers;
   
   <img width="1095" alt="image" src="https://github.com/apache/echarts/assets/5274428/b9b66527-78f7-490e-89f4-6464255b9ed0"> 
   ### Expected Behavior
   
   It is expected to get the current coordinate position in endLabel.formatter;
   
   Or the position of endLabel can be obtained on each frame of the animation callback.
   ```js 
   myChart.getZr().animation.on("frame", function (... arg) {
       console.log(arg);
     });
   ```
   
   Thank.
   
   ### Environment
   
   ```markdown
   - OS: mac
   - Browser:chrome
   - Framework: vue@3
   ```
   
   ### Any additional comments?
   
   _No response_
   </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