diff --git a/src/components/charts/UpLow.vue b/src/components/charts/UpLow.vue index c1d35a8..d52531b 100644 --- a/src/components/charts/UpLow.vue +++ b/src/components/charts/UpLow.vue @@ -40,7 +40,7 @@ const init = () => { let maxVal:number = chgFlag ? 5200 : 0 if (!chgFlag) { - maxVal = chgContent.value.map(x => x.limitUpCount + x.limitLowCount).sort((a, b) => b - a).at(0) + maxVal = chgContent.value.map(x => x.limitUpCount + x.limitLowCount).sort((a, b) => a - b).pop() } const myChart = echarts.init(UpLow.value)