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 2020/12/07 09:41:40 UTC

[GitHub] [incubator-echarts] itenl opened a new issue #13776: Get the actual width of xAxis through echartsInstance.

itenl opened a new issue #13776:
URL: https://github.com/apache/incubator-echarts/issues/13776


   ### What problem does this feature solve?
   When the screen is vertical and there are more Pointers, I will use dataZoom, and then use echartsInstance.on("updateAxisPointer",()=>{}) to control the dataZoom start and end, but when the actual width cannot be obtained, the offset cannot be calculated.
   
   Kinldy, I donโ€™t need echartsInstance.getWidth()
   
   ### What does the proposed API look like?
   echartsInstance.getXAxisWidth()
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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.

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] [incubator-echarts] plainheart commented on issue #13776: Get the actual width of xAxis through echartsInstance.

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13776:
URL: https://github.com/apache/incubator-echarts/issues/13776#issuecomment-739816310


   Currently, we may get it through the following ways, just for your reference.
   ```js
   echartsInstance.getModel().getComponent('xAxis').axis.getExtent()
   ```
   
   or
   
   ```js
   echartsInstance.getModel().getComponent('xAxis').axis.grid.getRect()
   ```


----------------------------------------------------------------
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.

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] [incubator-echarts] echarts-bot[bot] commented on issue #13776: Get the actual width of xAxis through echartsInstance.

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13776:
URL: https://github.com/apache/incubator-echarts/issues/13776#issuecomment-739800453


   Hi! We've received your issue and please be patient to get responded. ๐ŸŽ‰
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! ๐Ÿต


----------------------------------------------------------------
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.

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