-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed
Labels
staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
One-line summary [问题简述]
No option to set min/max in pie. I have tried setting min/max using xAxis, yAxis, radiusAxis, etc
Expected behaviour [期望结果]
Max should be 100%, not the highest value in data
ECharts option [ECharts配置项]
option = {
color: vcolors,
tooltip : {
trigger: 'item',
formatter: function(params) {
if(params['value']!=0)
return params['name']+"<br/>"+params['value']+"%";
}
},
series: [{
type: 'pie',
data: valuesdata,
roseType: 'area',
itemStyle: {
normal: {
border: false
}
},
labelLine: {
normal: {
show: false
}
},
label: {
normal: {
show: false
}
}
}, {
type: 'pie',
data: labelData,
radius: ['80%', '100%'],
zlevel: -2,
itemStyle: {
normal: {
color: '#e9e9e9',
borderColor: '#fff',
fontSize: 10,
}
},
label: {
normal: {
color: '#495057',
position: 'inside',
fontSize: 11,
}
}
}],
};Other comments [其他信息]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
