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 label position is strange when the pie chart series data value is null. #10088

Closed
katherinebai opened this issue Mar 12, 2019 · 1 comment · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Assignees
Labels

Comments

@katherinebai
Copy link

Version

4.2.1-rc1

Steps to reproduce

Run the following option:

option = {
"animation": true,
"tooltip": {
"trigger": "item"
},
"legend": {
"show": true,
"orient": "vertical",
"align": "left",
"right": 5,
"top": "center"
},
"series": [{
"name": "Series1",
"type": "pie",
"selectedMode": false,
"stillShowZeroSum": false,
"data": [{
"value": 13,
"name": "DD000045",
"itemStyle": {
"borderColor": "#FFFFFF",
"borderWidth": 2,
"borderType": "solid"
}
}, {
"value": 7,
"name": "DD000048",
"itemStyle": {
"borderColor": "#FFFFFF",
"borderWidth": 2,
"borderType": "solid"
}
}, {
"value": 7,
"name": "DD000046",
"itemStyle": {
"borderColor": "#FFFFFF",
"borderWidth": 2,
"borderType": "solid"
}
}, {
"value": null,
"name": "DD000049",
"itemStyle": {
"borderColor": "#FFFFFF",
"borderWidth": 2,
"borderType": "solid"
}
}, {
"value": 5,
"name": "DD000047",
"itemStyle": {
"borderColor": "#FFFFFF",
"borderWidth": 2,
"borderType": "solid"
}
}],
"label": {
"show": true,
"position": "inside",
"color": "#000000",
"fontFamily": "'Arial'",
"fontSize": 14.67,
"fontStyle": "Normal",
"fontWeight": 400,
"borderWidth": 1,
"borderType": "solid",
"padding": 3
},
"labelLine": {
"show": false
},
"hoverAnimation": false,
"center": [186.668701171875, 144],
"radius": [72, 97.2]
}],
"color": ["#0087CD", "#8BB73D", "#EBC54B", "#EA772A", "#D03736"]
};

What is expected?

Label does not show on the left-top corner.

What is actually happening?

On the left-top corner, there is some strange text.
image

@echarts-bot
Copy link

echarts-bot bot commented Mar 12, 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! 🍵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment