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 2021/08/06 03:59:34 UTC

[GitHub] [echarts] pissang edited a comment on issue #14266: Time Axis is display can overlap in v5

pissang edited a comment on issue #14266:
URL: https://github.com/apache/echarts/issues/14266#issuecomment-893982506


   @svedova Hi, Thanks for helping fix it. There is a helper function that can hide the overlapped labels.
   
   https://github.com/apache/echarts/blob/master/src/label/labelLayoutHelper.ts#L289
   
   The `labelList` parameters can be prepared by the helper function `prepareLayoutList ` in the same file. What you need is to give a list with `label` and `priority` in each item. For better display. The priority of each label should be:
   
   year > month > day > hour > minutes > second > millesecond
   
   Feel free to ask in this thread if you have any more questions:)


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