diff --git a/src/components/charts/UpLow.vue b/src/components/charts/UpLow.vue index 763b34a..e0ac739 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)