From 1dbdda3517a01851d8d9894b22e61aa4462b541c Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 07 十二月 2023 19:16:36 +0800 Subject: [PATCH] tooltip值优化 --- src/views/cockpitPage/components/DeviceChart.vue | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/views/cockpitPage/components/DeviceChart.vue b/src/views/cockpitPage/components/DeviceChart.vue index b95ae0e..a88e6be 100644 --- a/src/views/cockpitPage/components/DeviceChart.vue +++ b/src/views/cockpitPage/components/DeviceChart.vue @@ -65,6 +65,9 @@ axisPointer: { type: "none", }, + valueFormatter: function (value) { + return value + "%"; + }, }, grid: { right: "80px", -- Gitblit v1.8.0