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/08/07 08:32:19 UTC

[GitHub] [incubator-echarts] fhfuih opened a new issue #13097: grid.containLabel conflicts with yAxis.axisLabel.formatter

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


   ### Version
   4.8.0
   
   ### Steps to reproduce
   1. Set `grid.containLabel` to true.
   2. Set a funtion to `yAxis.axisLabel.formatter`, namely `foo(value, index)`
   
   One can utilize `https://echarts.apache.org/examples/zh/editor.html?c=scatter-simple` for reproduction.
   
   ### What is expected?
   The formatter function runs all right, with `value` the tick value and `index` the tick index.
   
   ### What is actually happening?
   The formatter will run twice during the rendering of the graph. In the first run(virtual rendering and calculcating the labels' width) `index` will be undefined. If I need to do some calculation with index, errors will be thrown. In fact I also encountered the case where both `value` and `index` are undefined in the first run. But too many configs are involved and I could not found a minimal reproduction yet.
   
   <!-- 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] echarts-bot[bot] commented on issue #13097: grid.containLabel conflicts with yAxis.axisLabel.formatter

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


   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 questions.
   
   If you are interested in the project, you may also subscribe our [mail 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


[GitHub] [incubator-echarts] Ovilia commented on issue #13097: grid.containLabel conflicts with yAxis.axisLabel.formatter

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


   Thanks for reporting. This seems to be a bug.


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