NEZ-1769 fix:chart 取最大值错误 导致 Y轴显示错误的问题
This commit is contained in:
@@ -129,10 +129,12 @@ export default {
|
||||
})
|
||||
})
|
||||
const timeSorted = datas.sort((a, b) => {
|
||||
return a[0] - b[0]
|
||||
return Number(a[0]) - Number(b[0])
|
||||
})
|
||||
const valueSorted = datas.sort((a, b) => {
|
||||
return a[1] - b[1]
|
||||
const a1 = isNaN(a[1]) ? 0 : Number(a[1])
|
||||
const b1 = isNaN(b[1]) ? 0 : Number(b[1])
|
||||
return a1 - b1
|
||||
})
|
||||
minTime = timeSorted.length ? timeSorted[0][0] : ''
|
||||
maxTime = timeSorted.length ? timeSorted[timeSorted.length - 1][0] : ''
|
||||
|
||||
Reference in New Issue
Block a user