饼状图--只有一个指标
直接将下面的放入
https://gallery.echartsjs.com/editor.html?c=xBy9Gn_x99 就可以了 进行调试
option = { title: { text: '我是',x: 'center''normal''20' } },//那个指标 legend: { show: true'已使用0'] },series: [{ type: 'pie'true,//饼图的扇区是否是顺时针排布。 radius: ['50%','66%'],1)">//调节宽度的大小 itemStyle: { normal: { label: { show: false },labelLine: { show: } } },hoverAnimation: '已使用0' 完成的圆环的颜色 colorStops: [{ offset: 0 0% 处的颜色 },{ offset: 1 100% 处的颜色 }] },label: { show: },labelLine: { show: } } } }] }] };