|
@@ -285,7 +285,7 @@ export function setSjjk(ele, dataIn) {
|
|
|
symbol: 'emptyCircle',
|
|
|
symbolSize: nowSize(11),
|
|
|
yAxisIndex: 1,
|
|
|
- itemStyle: { color: 'rgba(143, 186, 236, 1)' },
|
|
|
+ itemStyle: { color: 'rgba(143, 186, 236, 1)'},
|
|
|
data: sum,
|
|
|
}
|
|
|
]
|
|
@@ -800,7 +800,7 @@ export function setOnTimeRate(ele, dataIn) {
|
|
|
}
|
|
|
let rate
|
|
|
if(dataIn) {
|
|
|
- rate = Math.round(+dataIn.slice(0,-1)/100)
|
|
|
+ rate = (Number(dataIn.slice(0,-1))/100).toFixed(3)
|
|
|
} else {
|
|
|
rate=0
|
|
|
}
|
|
@@ -834,24 +834,29 @@ export function setOnTimeRate(ele, dataIn) {
|
|
|
label: {
|
|
|
color: '#ddd',
|
|
|
insideColor: '#ddd',
|
|
|
+ fontSize: nowSize(36),
|
|
|
+ lineHeight: nowSize(32),
|
|
|
+ fontFamily: 'BarLowBold',
|
|
|
formatter: params => {
|
|
|
+ console.log(params.value)
|
|
|
if(params.value==0) {
|
|
|
return `{value|-}{percent|%}\n{title|准点率}`
|
|
|
} else {
|
|
|
- return `${'value'|(params.value * 100).toFixed(0)}{percent|%}\n{title|准点率}`
|
|
|
+ let rate = (params.value * 100).toFixed(1).toString().split('.')
|
|
|
+ console.log(rate)
|
|
|
+ return `${rate[0]}${+rate[1]?'.':''}${'percent'|rate[1]||''}{percent|%}\n{title|准点率}`
|
|
|
}
|
|
|
},
|
|
|
rich:{
|
|
|
- value: {
|
|
|
- fontFamily: 'BarlowBold',
|
|
|
- fontSize: nowSize(48),
|
|
|
- },
|
|
|
percent: {
|
|
|
- fontFamily: 'BarlowBold',
|
|
|
- fontSize: nowSize(24),
|
|
|
+ fontSize: nowSize(16),
|
|
|
+ verticalAlign: 'bottom',
|
|
|
+ lineHeight: nowSize(16),
|
|
|
+ padding: [0,0,0,nowSize(2)]
|
|
|
},
|
|
|
title: {
|
|
|
- fontSize: 16,
|
|
|
+ fontSize: nowSize(16),
|
|
|
+ padding:[nowSize(10),0,0]
|
|
|
}
|
|
|
}
|
|
|
},
|