From 2e8f7406749792a2b60c076459be08064d02b674 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Mon, 17 Jul 2023 16:01:33 +0800 Subject: [PATCH] =?UTF-8?q?CPU=E4=BD=BF=E7=94=A8=E7=8E=87=20=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/system/cpu/CPUUsageChart.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue b/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue index db8e8dc..8b2fe49 100644 --- a/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue +++ b/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue @@ -72,6 +72,26 @@ const chart = reactive({ min: 0, max: 100 }, + visualMap: { + show: false, + pieces: [ + { + gte: 0, + lte: 30, + color: '#5cb87a' + }, + { + gt: 30, + lte: 80, + color: '#e6a23c' + }, + { + gt: 80, + lte: 100, + color: '#f56c6c' + }, + ] + }, series: [ { name: 'CPU使用率',