var val1data2 = [{
value: 0.8,
name: '开机机床数',
},
{
value: 0.1,
name: '待机机床数',
},
{
value: 0.1,
name: '故障机床数',
}
]
var arr = ['middleLost', 0.6, val1data2, '设备总数']
option = {
backgroundColor: '#0e2147',//整体背景颜色
title: {
top: '50%',
left: 'center',
text: arr[3],
textStyle: {
color: '#fff',
fontStyle: 'normal',
fontWeight: 'normal',
fontSize: '20'
},
//subtext: '(占所有数据的的' + (arr[1] * 10000 / 100).toFixed(2) + '%)',
subtext: '2115607',
subtextStyle: {
color: '#fff',
fontSize: 25
}
},
tooltip: {
trigger: 'item',
formatter: function(res) {
console.log(res)
if (
echarts实现饼图中心水球图
最新推荐文章于 2024-05-31 14:25:51 发布