diff --git a/src/views/floodSys/floodYP/historyEventDetail.vue b/src/views/floodSys/floodYP/historyEventDetail.vue index 627d5cd..ca32387 100644 --- a/src/views/floodSys/floodYP/historyEventDetail.vue +++ b/src/views/floodSys/floodYP/historyEventDetail.vue @@ -107,6 +107,7 @@ }); chartOption.option4.xAxis.data = xData; chartOption.option4.series[0].data = yData; + chartOption.option4.yAxis.max = Math.max(...yData); if (xData.length > 0) { chartOption.option4.graphic.invisible = true; } else {