数据微调

This commit is contained in:
ljx 2025-04-17 12:27:22 +08:00
parent 63ff05e0da
commit 244e94ab95
2 changed files with 12 additions and 10 deletions

View File

@ -301,7 +301,7 @@ export default {
{
name: '合格率目标',
type: 'line',
data: [98, 98, 98, 98, 98, 98,98],
data: [98, 98, 98, 98, 97, 96,95],
symbolSize: 10,
itemStyle: {
color: '#FFA500' // 线
@ -375,7 +375,7 @@ export default {
detail: {
fontSize: 24,
offsetCenter: [0, '-10%'],
color: '#fff',
color: value < 90 ? '#FF0000' : '#fff', // 90
formatter: '{value}%'
},
data: [{ value }]
@ -470,14 +470,14 @@ export default {
justify-content: center;
.inspection-title {
font-size: 28px;
font-size: 30px;
color: #fff;
font-weight: bold;
margin-bottom: 10px;
}
.inspection-value {
font-size: 40px;
font-size: 44px;
color: #08e5ff;
font-weight: bold;
}

View File

@ -66,8 +66,6 @@
},
];
const colorList = ['#3de7c9','#88a8f4','#FFD700','#08e5ff', '#FF69B4', '#9370DB'];
const sum = chartData.reduce((per, cur) => per + cur.value, 0);
var myChart = echarts.init(document.getElementById('pieId-new'));
this.option = {
@ -109,25 +107,29 @@
},
series: [{
type: 'radar',
colorBy: 'data', //
data: [{
value: chartData.map(item => item.value),
name: '产量统计',
areaStyle: {
color: 'rgba(8, 229, 255, 0.4)' // #08e5ff
color: 'rgba(8, 229, 255, 0.4)'
},
lineStyle: {
width: 2,
color: '#08e5ff' // #08e5ff
color: '#08e5ff'
},
symbolSize: 8,
itemStyle: {
color: '#FFFFFF'
},
label: {
show: true,
formatter: function(params) {
return params.value;
},
color: '#fff',
color: '#FFFFFF',
fontWeight: 'bold',
fontSize: 20
fontSize: 24
}
}]
}]