-
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
The size of Gauge chart can not fit to the edge of panel after changing startAngle and endAngle #10506
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. Have a nice day! 🍵 |
Sorry, what do you mean by |
I see. But for the case that the |
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! |
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: '完成率'}]
}
]
};
The text was updated successfully, but these errors were encountered: