@ -580,14 +580,14 @@
const total = data[0]
const flaw = data[1]
const rate = flaw / total
console.log(data)
rejectRatioChart.setOption({
series: [
{
name: '不良率',
data: [
{value: 22, name: `3%`},
{value: 78, name: ''},
{value: flaw, name: rate.toFixed(2)+'%'},
{value: total-flaw, name: ''},
],
}
]