用echarts实现类似iWatch环形图表
2022-07-13 本文已影响0人
Frank_Fang

option = {
angleAxis: {
max: 100,
splitLine: false,
axisLine: false
},
radiusAxis: {
type: 'category',
data: [''],
axisLine: false
},
polar: {
radius: ['40%', '80%']
},
series: [
{
type: 'bar',
data: [100],
coordinateSystem: 'polar',
stack: '2021',
color: '#eee'
},
{
type: 'bar',
data: [100],
coordinateSystem: 'polar',
stack: '2022',
color: '#eee'
},
{
type: 'bar',
data: [85],
coordinateSystem: 'polar',
name: '2021',
stack: '2021',
roundCap: true
},
{
type: 'bar',
data: [75],
coordinateSystem: 'polar',
name: '2022',
stack: '2022',
roundCap: true
}
]
};