From d509fbf047920874ee279e21ca06adfc43c4886b Mon Sep 17 00:00:00 2001 From: guoyixuan Date: Mon, 28 Jul 2025 13:33:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B7=A5=E5=85=B7=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 7562722..5228cb0 100644 --- a/index.html +++ b/index.html @@ -349,10 +349,11 @@ axios.defaults.baseURL = 'http://192.168.1.198:9501'; // 临时服务地址 axios.defaults.timeout = 10000; const HISTORY_TREND_LEGEND = [ - { id: 'avg', name: '平均值' }, - { id: 'maxValue', name: '最大值' }, { id: 'plusAvg', name: '脉冲平均值' }, - { id: 'plusCount', name: '脉冲次数' }, + { id: 'avg', name: '噪声' }, + { id: 'maxValue', name: '最大值' }, + { id: 'plusCount', name: '脉冲频次' }, + { id: 'eventCount', name: '事件数' }, ] const findParentByKey = (tree, targetKey) => { for (const parent of tree) { @@ -554,6 +555,7 @@ const legend = { data: HISTORY_TREND_LEGEND.map(s => s.name), // 图例数据 top: 0, + left: '18%', }; const xAxis = { type: 'category', @@ -591,9 +593,10 @@ this.chart = echarts.init(this.$refs.graphRef); const option = { // 设置响应式 + color: ['#1f8ffd', '#fd1f44', '#ff9933', "#660099", '#35C822'], grid: { top: 30, - right: 230, + right: '30%', bottom: 30, left: 30 },