Commit dc470b0f authored by 李苏's avatar 李苏 💬

调整

parent 5ed44624
......@@ -1041,51 +1041,33 @@
color: 'white'
}
}
let seriesData = [{
name: "持证人数",
let seriesData = {
data: [],
type: "bar",
barWidth: 20,
stack: 'total',
itemStyle: {
color: "#334284"
},
...seriesStyle
},
{
name: "即将到期",
data: [],
type: "bar",
barWidth: 20,
stack: 'total',
itemStyle: {
color: ""
},
...seriesStyle
},
],
xAxis = [];
}
let xAxis = [];
value.forEach(element => {
xAxis.push(element.flName);
seriesData[0]["data"].push(element.allCount - element.dqCount || 0);
seriesData[1]["data"].push(element.dqCount || 0);
xAxis.push(element.flName.replace('持证信息',''));
seriesData.data.push(element.allCount)
});
this.setBarhart(this.ygzcChart, {
title: "员工持证",
titleShow: true,
yAxis: {
name: "种类",
data: xAxis,
show: false,
type: "category",
...yAxisStyle
},
customxAxis: {
type: "value",
boundaryGap: [0, 0.01],
...yAxisStyle
data: xAxis,
"axisLabel": {
"show": true,
"color": "white" // 设置轴标签颜色为白色
}
},
series: seriesData
series: seriesData,
})
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment