vue-echart 和 echart的安装参考上文
#链接
https://blog.csdn.net/u014686399?spm=1003.2018.3001.5343
安装echarts-liquidfill
- 安装
yarn add echarts-liquidfill
- 使用
<v-chart
:option="poloOption"
/>
poloOption = {
title: {
text: '平均通话时长'
},
// label: {
// formatter: '{b}\n{c}',
// fontSize: 2
// },
series: [{
type: 'liquidFill',
radius: '90%',
data: [{
name: 'First Data',
value: 0.16
}],
label: {
formatter: '{b}\n{c}',
fontSize: 20
},
}]
}
展示:下面的这个图实际上是动的: