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

Pie chart avoidLabelOverlap hides label even when there are lot's of free space #13938

Closed
tapio-fuusor opened this issue Jan 4, 2021 · 1 comment
Labels
bug en This issue is in English
Milestone

Comments

@tapio-fuusor
Copy link

tapio-fuusor commented Jan 4, 2021

Version

5.0.0

Steps to reproduce

Open https://echarts.apache.org/next/examples/en/editor.html?c=pie-doughnut
and paste this code to Edit example -section:

option = {
    series: [
        {
            type: 'pie',
            radius: '25%',
            avoidLabelOverlap: true,
            label: {
                show: true,
                position: 'outside',
                formatter: '{b}\n{d}%',
            },
            data: [
                { name: 'under 25',value: 14},	
                { name: '25-29',value: 62},	
                { name: '30-34',value: 73},	
                { name: 'Not visible',value: 62 },
                { name: '40-44',value: 30},	
                { name: '45-49',value: 12},	
                { name: '50-54',value: 1},	
            ]
        }
    ]
};

image

Data point named "Not visible" becomes hidden very soon if browser size is resized to smaller size even when there is lot's of free space to show label

What is expected?

Label "Not visible" should be visible

What is actually happening?

Label is hidden when it should not


I was updating from 4.9 to 5.0 and ran into this issue as 4.9 works better in this situation

@echarts-bot
Copy link

echarts-bot bot commented Jan 4, 2021

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

If you are interested in the project, you may also subscribe our mailing 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 Jan 4, 2021
@pissang pissang removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Jan 12, 2021
@pissang pissang added this to the 5.1.0 milestone Jan 12, 2021
pissang added a commit that referenced this issue Jan 25, 2021
fix(pie): pie chart avoidLabelOverlap hides label. close #13938
@pissang pissang modified the milestones: 5.1.0, 5.0.2 Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English
Projects
None yet
Development

No branches or pull requests

2 participants