From c9edc21dac11a334c1a49aec5cb829760def34c2 Mon Sep 17 00:00:00 2001
From: longyvfengyun <496960745@qq.com>
Date: 星期四, 28 三月 2024 13:30:53 +0800
Subject: [PATCH] 内容修改

---
 src/views/analysis/lofAnalysis.vue |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/views/analysis/lofAnalysis.vue b/src/views/analysis/lofAnalysis.vue
index 5e0b23a..1d9abc8 100644
--- a/src/views/analysis/lofAnalysis.vue
+++ b/src/views/analysis/lofAnalysis.vue
@@ -7,6 +7,7 @@
 import HdwChart from "@/components/echarts/hdwChart.vue";
 import getNormalLine from "@/components/echarts/options/normalLine";
 import {ElMessage} from "element-plus";
+import getChartLinesMax from "@/util/getChartLinesMax";
 
 const carName = ref("");
 const timeRange = ref([]);
@@ -173,6 +174,7 @@
 		title4.value = data.y4Name;
 		let chart4Data = formatData(data.bmsAlgorithmVoList4);
 		chart4Option.xAxis.data = chart4Data.x;
+		const chart4MaxInfo = getChartLinesMax(chart4Data.y);
 		chart4Option.series = chart4Data.y.map((item, key)=>{
 			return {
 				name: '#'+(key+1),
@@ -180,6 +182,19 @@
 				sampling: "lttb",
 				smooth: false,
 				symbolSize: 0,
+				markPoint: {
+					data: [
+						{
+							name: "鏈�澶у��",
+							value: "#"+(chart4MaxInfo.x+1),
+							xAxis: chart4Data.x[chart4MaxInfo.x],
+							yAxis: chart4MaxInfo.y,
+							itemStyle: {
+								color: '#ff0000'
+							}
+						},
+					]
+				},
 				data: item,
 			}
 		});
@@ -260,7 +275,6 @@
 			left: '1%',
 			right: '4%',
 			bottom: '3%',
-			top: "6%",
 			containLabel: true
 		}
 	});

--
Gitblit v1.9.1