环形图效果:
option = {
"angleAxis": {
"max": 1,
"show": false,
"splitLine": {
"show": false
},
"axisLabel": {
"show": false
},
"axisTick": {
"show": false
}
},
"radiusAxis": {
"show": false,
"type": "category",
"data": [
"v",
"w",
"x"
]
},
"polar": {
"radius": [
"30%",
"80%"
],
"center": [
"50%",
"50%"
]
},
"series": [
{
"type": "bar",
"data": [
1.047
],
"coordinateSystem": "polar",
"barWidth": 15,
"showBackground": true,
"backgroundStyle": {
"color": "rgba(255, 204, 0, 0.4)"
},
"roundCap": true,
"itemStyle": {
"color": "#FFCC00"
}
},
{
"type": "bar",
"data": [
0.273
],
"coordinateSystem": "polar",
"barWidth": 15,
"showBackground": true,
"backgroundStyle": {
"color": "rgba(40, 199, 194, 0.4)"
},
"roundCap": true,
"itemStyle": {
"color": "#28C7C2"
}
},
{
"type": "bar",
"data": [
0.273
],
"coordinateSystem": "polar",
"barWidth": 15,
"showBackground": true,
"backgroundStyle": {
"color": "rgba(0, 164, 219, 0.4)"
},
"roundCap": true,
"itemStyle": {
"color": "#00A4DB"
}
}
]
}```