You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/12 01:46:39 UTC

[GitHub] [incubator-echarts] louis-neal opened a new issue #10656: The min and max values of the "TicksCoords" on the axis are not rendered

louis-neal opened a new issue #10656: The min and max values of the "TicksCoords" on the axis are not rendered
URL: https://github.com/apache/incubator-echarts/issues/10656
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   You can use any axis with category type. After the rendering is complete, change the size of the window, the chart will be scaled, there is a high probability that min ticks, max ticks or both will be lost (not rendered)
   
   ### What is expected?
   Normal rendering
   
   ### What is actually happening?
   The min, max, or both are lost (not rendered)
   
   ---
   The problem is the inline function `littleThan` of `fixOnBandTicksCoords` in Axis.js. The data is compared without considering the precision, resulting in the first and last elements being removed. Please consider using the loss precision difference comparison method, such as the following correction code.
   ```js
     function littleThan(a, b) {
       return inverse ? (a - b) > 1e-12 : b - a > 1e-12;
     }
   ```
   <!-- This issue is generated by echarts-issue-helper. 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


With regards,
Apache Git Services

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