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

仪表盘 axisLabel distance为负数时,label到轴的距离不一致 #15624

Closed
xuxiujuan opened this issue Aug 30, 2021 · 5 comments
Closed
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. stale Inactive for a long time. Will be closed in 7 days. topic: gauge

Comments

@xuxiujuan
Copy link

xuxiujuan commented Aug 30, 2021

Version

5.1.2

Steps to reproduce

option = {
    series: [{
        name: 'Pressure',
        type: 'gauge',
        startAngle: 180,
        endAngle: 0,
        max: 1000,
        axisTick: {
            distance: -25,
            splitNumber: 5
        },
        splitLine: {
            distance: -25,
            length: 14
        },
        axisLabel: {
            distance: -40,
            color: '#999',
            fontSize: 20
        },
        data: [{
            value: 150,
            name: 'SCORE'
        }]
    }]
};

What is expected?

axisLabel为负数时, 到轴的距离一致

What is actually happening?

左侧最小数值label距离轴线距离较远
右侧最大数值label距离轴线距离较近

@echarts-bot
Copy link

echarts-bot bot commented Aug 30, 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 it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

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 to our mailing list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Aug 30, 2021
@echarts-bot
Copy link

echarts-bot bot commented Aug 30, 2021

@xuxiujuan It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

When the dashboard axisLabel distance is negative, the distance from label to axis is inconsistent

BODY

Version

5.1.2

Steps to reproduce

option = {
series: [{
name: 'Pressure',
type: 'gauge',
startAngle: 180,
endAngle: 0,
max: 1000,
axisTick: {
distance: -25,
splitNumber: 5
},
splitLine: {
distance: -25,
length: 14
},
axisLabel: {
distance: -40,
color: '#999',
fontSize: 20
},
data: [{
value: 150,
name: 'SCORE'
}]
}]
};

What is expected?

When axisLabel is negative, the distance to the axis is consistent

What is actually happening?

The minimum value label on the left is farther from the axis
The maximum value label on the right is closer to the axis

@Ovilia Ovilia added difficulty: easy Issues that can be fixed more easily than the average. topic: gauge labels Sep 3, 2021
@echarts-bot
Copy link

echarts-bot bot commented Sep 3, 2021

This issue is labeled with difficulty: easy.
@xuxiujuan Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2023

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.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Sep 3, 2023
@github-actions
Copy link
Contributor

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!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. stale Inactive for a long time. Will be closed in 7 days. topic: gauge
Projects
None yet
Development

No branches or pull requests

2 participants