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/03/24 20:08:09 UTC

[GitHub] [echarts] dyoon-linevision opened a new issue #14528: xAxis Label Overlap

dyoon-linevision opened a new issue #14528:
URL: https://github.com/apache/echarts/issues/14528


   **Before upgrading:**
   ![Screen Shot 2021-03-24 at 4 07 37 PM](https://user-images.githubusercontent.com/58481200/112376638-12f8cb80-8cbb-11eb-9366-fbc9631d59fe.png)
   
   **After upgrading to eCharts5:**
   ![Screen Shot 2021-03-24 at 4 06 11 PM](https://user-images.githubusercontent.com/58481200/112376506-eba1fe80-8cba-11eb-8b1a-34c72dc37d44.png)
   
   ### Version
   5.0.2
   
   ### Steps to reproduce
   - Upgrade to eCharts 5.0.2
   
   - Use the following options for xAxis:
     options.xAxis.push({
       gridIndex: ndx,
       type: 'time',
       axisLabel: {
           formatter: function (date, index) {
               return DateTime.dateFormat(new Date(date), true)
           },
           showMaxLabel: false
       },
   });
   
   ### What is expected?
   Expect the xAxis intervals to be spread out far enough so that the labels don't overlap.
   
   ### What is actually happening?
   After upgrading to eCharts v5, the labels now overlap.
   
   <!-- 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] [echarts] Wintermute79 edited a comment on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
Wintermute79 edited a comment on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-1016554673


   I had the same issue with 5.2.2 when using label type 'time'. For me it was fixed with setting `xAxis.axisLabel.hideOverlap` to true.


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


[GitHub] [echarts] Wintermute79 commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
Wintermute79 commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-1028032302


   > I had the same issue with 5.2.2 when using label type 'time'. For me it was fixed with setting `xAxis.axisLabel.hideOverlap` to true.
   
   Tip: if you have axis labels of different lengths (e.g. weekday names), pad the ends with spaces to the same length to get better results.


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


[GitHub] [echarts] hannata commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
hannata commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-1009942254


   when will it be fixed ? I'm using the v5.2.2 and it still overlaps


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


[GitHub] [echarts] tomazk8 commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
tomazk8 commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-911260538


   @plainheart Thanks a lot. I am anxiously waiting for the new version :). Do you already know when it'll be released?


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


[GitHub] [echarts] plainheart commented on issue #14528: xAxis Label Overlap

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


   @tomazk8 #15583 may fix this bug. But it was just merged and not released yet. It's planned in v5.2.1.


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


[GitHub] [echarts] tomazk8 commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
tomazk8 commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-911234107


   Any more news? I have the same problem. I noticed that axis ticks are also irregularly placed which should not happen. I am using version 5.1.2.
   ![image](https://user-images.githubusercontent.com/9772517/131790628-409482e2-9ff5-49b8-856d-baefb316f1f2.png)
   


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


[GitHub] [echarts] tomazk8 commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
tomazk8 commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-1010715190


   For us it works now with version 5.2.2 - well, sort of. What axis does now is that it simply hides the ones that overlap. It should rearange the layout of the axis instead because the result is not that good as it could be. The axis layout algorithm is in general implemented badly. I know that the problem is that you cannot calculate the tick positions directly because in order to check if two labels overlap, you already need the tick positions. I have implemented such an algorithm long time ago where I roughly estimated the tick positions, checked if texts overlap and if yes, increase the tick offset and continue until I got the correct positions. It usually took only a couple of cycles and produced perfect result.


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


[GitHub] [echarts] Wintermute79 commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
Wintermute79 commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-1016554673


   I had the same issue with 5.2.2. For me it was fixed with setting `xAxis.axisLabel.hideOverlap` to true.


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


[GitHub] [echarts] tomazk8 edited a comment on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
tomazk8 edited a comment on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-911234107


   Any more news? I have the same problem. I noticed that axis ticks are also irregularly placed which should not happen. I am using version 5.1.2. Custom formatter is used to generate the axis labels.
   ![image](https://user-images.githubusercontent.com/9772517/131790628-409482e2-9ff5-49b8-856d-baefb316f1f2.png)
   


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14528: xAxis Label Overlap

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


   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


[GitHub] [echarts] plainheart commented on issue #14528: xAxis Label Overlap

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


   Thanks for your feedback. This is related to #13682 and #14266. It will probably be fixed in v5.1.0 or v5.2.0.


-- 
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] [echarts] JesperBalslev commented on issue #14528: xAxis Label Overlap

Posted by GitBox <gi...@apache.org>.
JesperBalslev commented on issue #14528:
URL: https://github.com/apache/echarts/issues/14528#issuecomment-867401424


   Any news?


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