From 016f9696a52bdfc0ec7483768941815a3277e8cd Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 23 Oct 2020 15:16:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9overview=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84Y=E8=BD=B4=E6=98=BE=E7=A4=BA=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E4=B8=BAbytes/s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/dashboard/overview/chart.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue index e881ab054..e0b8bd122 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue @@ -151,14 +151,12 @@ this.modifyOption('tooltip', 'formatter', this.defaultTooltipFormatter) } - if(this.chartType == 'line'){ + if(this.chartType == 'line' || this.chartType == 'overviewLine'){ let maxValueCopies = this.getMaxValue(this.series,{unit:this.unit}); let maxValue=maxValueCopies.maxValue; let copies=maxValueCopies.copies; let unit=maxValueCopies.unit; - this.option.yAxis.minInterval=chartDataFormat.Interval(maxValue,copies,unit.type,'min') - this.option.yAxis.maxInterval=chartDataFormat.Interval(maxValue,copies,unit.type,'max') - + this.option.yAxis.minInterval=chartDataFormat.Interval(maxValue,copies,unit.type,'min'); if(this.yAxisFormatter){ this.option.yAxis.axisLabel.formatter=this.yAxisFormatter; }else{