You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/30 09:00:25 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17299: [Bug] 使用extendShape自定义组件时获取不到坐标

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

   @1836661896 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] Can't get coordinates when using extendShape custom component
   
   **BODY**
   
   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   Create an extendShape custom style
   Build an echart chart
   Customize with series custom
   RenderItem in the incoming shape:{
                         x: api.value(0),
                         y: api.value(1),
                         width: api.value(3),
                         height: api.value(4)
                     },
   According to the content on the document, the parameter is the x and y axes of the coordinates and the width and height, but the obtained 0 and 1 are the values in the data, and 2 and 3 are NaN
   
   ### Current Behavior
   
   According to the results of the online search, api originally should have a method for coord to calculate the coordinates of x and y based on the value, the latest version does not have this method, hoping to be reintroduced
   
   ### Expected Behavior
   
   According to the results of the online search, api originally should have a method for coord to calculate the coordinates of x and y based on the value, the latest version does not have this method, hoping to be reintroduced
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   ### 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