From 1ef089163b0f0cee7fc4cea893b310027ccd671d Mon Sep 17 00:00:00 2001 From: selia-zx <1771203023@qq.com> Date: Thu, 14 May 2026 11:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E6=B0=B4-=E6=94=B6=E7=9B=8A=E5=88=86?= =?UTF-8?q?=E6=9E=90=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=B6=E7=9B=8A=E8=B6=8B?= =?UTF-8?q?=E5=8A=BF=E6=B7=BB=E5=8A=A0=E6=9C=80=E5=A4=A7=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=80=BC=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hotWater/profitAnalysis/index.vue | 44 ++++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/src/views/hotWater/profitAnalysis/index.vue b/src/views/hotWater/profitAnalysis/index.vue index 0e11306..abf6d88 100644 --- a/src/views/hotWater/profitAnalysis/index.vue +++ b/src/views/hotWater/profitAnalysis/index.vue @@ -702,7 +702,7 @@ export default { // 初始化收益趋势折线图 initTrendChart() { this.trendChart = echarts.init(this.$refs.trendChart_ref); - + const titleFontSize = this.$refs.trendChart_ref.offsetWidth / 50; const dates = this.chartData.map(item => item.curDate).reverse(); const incomeData = this.chartData.map(item => item.totalIncome).reverse(); @@ -717,8 +717,9 @@ export default { show: false, }, grid: { + // top: "15%", left: "3%", - right: "5%", + right: "10%", bottom: "3%", containLabel: true }, @@ -797,6 +798,45 @@ export default { { offset: 1, color: "rgba(16, 185, 129, 0.1)" } ] } + }, + markPoint: { + data: [ + { + type: 'max', + name: '最大值', + symbol: 'arrow', + symbolRotate: 180, + label: { + formatter: function (params) { + return params.value + '元'; + } + } + }, + { + type: 'min', + name: '最小值', + symbol: 'arrow', + symbolRotate: 180, + label: { + formatter: function (params) { + return params.value + '元'; + } + } + } + ], + label: { + fontSize: 14, + color: "#10b981", + fontWeight: 'bold', + padding: [4, 8], + borderRadius: 4, + backgroundColor: 'rgba(0, 0, 0, 0.7)', + offset: [0, -30] + }, + itemStyle: { + color: "#10b981", + }, + symbolSize: 14 } } ]