-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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)series里设置startAngle和endAngle无法绘制出半圆环图 #9647
Labels
Comments
endAngle is not supported in pie chart yet. |
thanks for reply,and can i know how to draw a half-circle ring? just use 'startAngle' in the 'pie' or ?? |
A tricky way: option = {
series : [
{
type: 'pie',
radius : '55%',
data:[
{value:335, name:'AA'},
{value:310, name:'BB'},
{value:234, name:'CC'},
{value:135, name:'DD'},
{value:1548, name:'empty', silent: true, itemStyle: {color: 'rgba(0,0,0,0)'}}
]
}
]
}; |
not bad, but still has a question,can't use 'tooltip' in 'option'.if i do, the 'empty' tooltip will be show when i hover it。anyway,thank you for reply |
@JohnsonWQ Support tooltip: option = {
tooltip: {
formatter: function (params) {
if (params && params.name === 'empty') {
return;
}
return ''
+ echarts.format.getTooltipMarker(params.color)
+ params.name + ': ' + params.value
+ ' (' + params.percent + '%)';
}
},
series : [
{
type: 'pie',
radius : '55%',
data:[
{value:335, name:'AA'},
{value:310, name:'BB'},
{value:234, name:'CC'},
{value:135, name:'DD'},
{value:1548, name:'empty', silent: true, itemStyle: {color: 'rgba(0,0,0,0)'}}
]
}
]
}; |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
General Questions
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
在echart 4.0版本中,series type 为pie 时,使用startAngle和endAngle设置起始刻度无效,
Expected Behavior
使用pie绘制出半圆环形图
Current Behavior
配置项无效果
Online Example
Topics
Anything Else We Need to Know
Environment
echart 4.2
ECharts version;ECharts 版本: {DESCRIBE_HERE}
It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}
The text was updated successfully, but these errors were encountered: