linghaoSu commented on issue #16931:
URL: https://github.com/apache/echarts/issues/16931#issuecomment-1114409043

   当前的 auto 的模式取得是最长标签的宽度,然后轴空间的**总长度** 除以 这个**最大宽度** 
计算的得到的间隔。因此与直观理解的重叠隐藏逻辑不太一致(我个人理解的 auto 模式也许是逐个寻找能完整显示的标签,而不是通过最大宽度计算出一个固定间隔?)
   
   PS:`overflow: 'truncate'` 模式开了也就没必要做自动间隔的计算了吧?(x
   
   
   The current auto mode takes the width of the longest label, and then divides 
the **total length** of the axis space by the **max width** calculated 
interval. Therefore, it is not consistent with the intuitively understood 
overlapping hiding logic (my personal understanding of the auto mode may be to 
find the labels that can be completely displayed one by one, instead of 
calculating a fixed interval through the maximum width?)
   
   PS: `overflow: 'truncate'` mode is on, so there is no need to do automatic 
interval calculation? (x
   
   
https://github.com/apache/echarts/blob/master/src/coord/axisTickLabelBuilder.ts#L255-L278


-- 
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-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to