From fb105b796296b6d0a48bf81dcb0d08bdb5189dc0 Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Fri, 22 Aug 2025 18:23:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(largeScreen):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=B1=95=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在折线图中添加图例显示 - 调整柱状图的图例位置和标签显示 - 优化库存图的视觉效果 --- src/views/largeScreen/components/optionList.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/largeScreen/components/optionList.ts b/src/views/largeScreen/components/optionList.ts index c35d06a..8ed0f51 100644 --- a/src/views/largeScreen/components/optionList.ts +++ b/src/views/largeScreen/components/optionList.ts @@ -255,6 +255,7 @@ export const getLineOption = (lineData: any) => { const maxData = Math.max(...lineData.line1.flat()); const option = { + backgroundColor: '', tooltip: { trigger: 'axis', @@ -695,6 +696,10 @@ export const getInventoryOption = () => { }; export const getBarOptions = (data: any) => { const option = { + legend: { + show: true, + top: '50%', + }, backgroundColor: '', grid: { left: '8%', @@ -846,7 +851,7 @@ export const getBarOptions = (data: any) => { ) }, label: { - show: false, + show: true, formatter: '{c}', position: 'top', color: '#fff',