-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xAxis Label Overlap #14528
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option 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 [email protected]. 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. Have a nice day! 🍵 |
Any news? |
@plainheart Thanks a lot. I am anxiously waiting for the new version :). Do you already know when it'll be released? |
when will it be fixed ? I'm using the v5.2.2 and it still overlaps |
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. |
I had the same issue with 5.2.2 when using label type 'time'. For me it was fixed with setting |
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 issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
Using v4.7.0:
![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 v5.0.2:
![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:
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. The chart options did not change.
The text was updated successfully, but these errors were encountered: