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

The size of Gauge chart can not fit to the edge of panel after changing startAngle and endAngle #10506

Closed
zteric opened this issue May 21, 2019 · 6 comments
Labels
en This issue is in English new-feature stale Inactive for a long time. Will be closed in 7 days.

Comments

@zteric
Copy link

zteric commented May 21, 2019

Version

4.2.1

Steps to reproduce

1.setup a gauge chart;

2.change startAngle = 180 and endAgle=0;

3.there are only top half of the panel was filled, the bottom half is empty.

Pls advise how to prevent this from happening if possible.

What is expected?

Gauge chart should get displayed in the middle(vertical) of the panel instead of showing at the top only.

What is actually happening?

gauge chart only shows at the top of the panel and the bottom part is empty.


sample option:
option = {
tooltip : {
formatter: "{a}
{b} : {c}%"
},
toolbox: {
feature: {
restore: {},
saveAsImage: {}
}
},
series: [
{
name: '业务指标',
startAngle:180,
endAngle:0,
type: 'gauge',
detail: {
formatter:'{value}%',
offsetCenter:[0,"-30%"]
},
data: [{value: 50, name: '完成率'}]
}
]
};

@echarts-bot
Copy link

echarts-bot bot commented May 21, 2019

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.

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-help labels May 21, 2019
@zteric zteric changed the title The size of Gauge chart can not fit to the edge after changing startAngle and endAngle The size of Gauge chart can not fit to the edge pf panel after changing startAngle and endAngle May 21, 2019
@zteric zteric changed the title The size of Gauge chart can not fit to the edge pf panel after changing startAngle and endAngle The size of Gauge chart can not fit to the edge of panel after changing startAngle and endAngle May 21, 2019
@Ovilia
Copy link
Contributor

Ovilia commented May 21, 2019

Sorry, what do you mean by Gauge chart should get displayed in the middle(vertical) of the panel instead of showing at the top only? Can you provide an image to show what you want?
The result seems quite all right to me.

@Ovilia Ovilia added missing-demo The author should provide a demo. waiting-for-author and removed waiting-for-help labels May 21, 2019
@zteric
Copy link
Author

zteric commented May 21, 2019

gauge chart

Add detail image, its obvious that gauge chart only shows on the top part, the bottom part is empty, the expectation is show this gauge chart in the middle of the panel and expand the size a little bit.

@Ovilia
Copy link
Contributor

Ovilia commented May 21, 2019

I see. But for the case that the startAngle or endAngle may change afterward, it's nice to have the animation when the center of the circle is fixed.
I found there is no position attribute in the doc. Perhaps we could provide such configure for users to change the center position of the gauge chart if they need.

@Ovilia Ovilia added new-feature and removed bug missing-demo The author should provide a demo. pending We are not sure about whether this is a bug/new feature. waiting-for-author labels May 21, 2019
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2021

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 8, 2021
@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants