From b77b02130901de9971902525aede0fbd845f0590 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Tue, 3 Dec 2024 16:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E5=80=9F=E9=98=85=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=BE=97=E6=9D=A5?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echart/lineChartService.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/echart/lineChartService.vue b/src/components/echart/lineChartService.vue index ce5e747..2b38271 100644 --- a/src/components/echart/lineChartService.vue +++ b/src/components/echart/lineChartService.vue @@ -121,9 +121,13 @@ export default { { type: 'value', // 坐标轴最大值、最小值、强制设置数据的步长间隔 - max: 1000, + // max: 1000, min: 0, - interval: 250, + max: function(value) { + return Math.ceil(value.max + (value.max - value.min) * 0.2) + }, + // interval: 250, + splitNumber: 5, axisLabel: { textStyle: { color: '#fff'