Skip to content
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

axis name and label overlaps when the nameLocation is 'center' or 'middle' #12415

Open
ihakh opened this issue Apr 11, 2020 · 9 comments
Open
Labels
discussion-required Further discussion is required before we decide if this issue should be fixed. en This issue is in English enhancement

Comments

@ihakh
Copy link

ihakh commented Apr 11, 2020

Version

4.7.0

Steps to reproduce

in this example https://echarts.apache.org/examples/en/editor.html?c=watermark
add these lines to yAxis:

        name:'some longe name',
        nameLocation:'center',

image

What is expected?

the name comes after the longest label name automatically

What is actually happening?

the name and label overlaps


we can fix it by nameGap for a certain resolution
but it is not dynamic and on different resolution the it may be wrong
besides when using a dynamic charts when the label length is unknown we can not be sure how much nameGap we must consider

@echarts-bot
Copy link

echarts-bot bot commented Apr 11, 2020

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 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 dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Apr 11, 2020
@yufeng04
Copy link
Contributor

This configuration item should be enhanced. Maybe you can use nameGap temporarily.

@yufeng04 yufeng04 added discussion-required Further discussion is required before we decide if this issue should be fixed. enhancement and removed bug pending We are not sure about whether this is a bug/new feature. labels Apr 13, 2020
@tsanie
Copy link

tsanie commented Jun 22, 2020

I have the same issue, waiting for an option like grid.containLabel.

@ArturMiszkowicz
Copy link

i have same issue, i think if nameLocation: middle, it should automatically calculate axis longest label and place name accordingly

@locinus
Copy link

locinus commented Mar 24, 2022

Same here. Any development?
That renders terribly, and calculating manually nameGap is quite error-prone.
image

@c3-anerishah
Copy link

Having the same issue, wondering if there is an enhancement in progress?

Screen Shot 2022-04-14 at 3 21 26 PM

@Peque
Copy link

Peque commented Dec 4, 2022

Worth noting @rephus's workaround (for those waiting for this to be implemented in ECharts): lightdash/lightdash#2730 😊

@benliu723
Copy link

两年了咋没进展呢, 我还以为是我没找到配置, 原来确实没有自动计算标题位置. 这可就难受了,如果每个chart都需要手动给个nameGap, 那得多难受!

@wozien
Copy link

wozien commented Feb 16, 2023

两年了咋没进展呢, 我还以为是我没找到配置, 原来确实没有自动计算标题位置. 这可就难受了,如果每个chart都需要手动给个nameGap, 那得多难受!

不止两年了,16年就有兄弟提了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion-required Further discussion is required before we decide if this issue should be fixed. en This issue is in English enhancement
Projects
None yet
Development

No branches or pull requests

9 participants