option = {
angleAxis: {
show: false, //隐藏径向轴(半径)
type: 'value',
splitLine: {
show: true
},
min: 0,
max: 20000,
axisTick: {
show: true
}
},
barMaxWidth: 50, //设置圆环最大宽度
radiusAxis: {
// splitArea: {
// show: true,
// areaStyle: {
// color: ['#3e3c3d']
// }
// },
data: ['数','b','c'],
show: true, //隐藏径向轴(半径)
axisLine: {
show: false
},
axisLabel: {
color: 'white',
},
splitNumber: 1,
axisTick: {
show: false
}
},
polar: {
radius: [40, 90], //总体的最小半径,最大半径
tooltip: {
show: true
},
center: ['50%', '50%']
},
series: [
{
type: 'bar',
data:[2000,3000,10000],
barWidth: '50%',
coordinateSystem: 'polar',
roundCap: true, //柱状图末端呈现圆角
name: 'Without Round Cap',
itemStyle: {
color: (params) => {
let data = ['#5EBFE5', '#ED926B', '#E2B553'];
return data[params.dataIndex];
},
animationEasing: 'bounceOut', //初始动画
opacity: 0.8
}
}
],
legend: {
show: false
}
};
|