From e5d9cf1f2e5e10f5c3215eefaf68d95ccd7ec10f Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 29 Dec 2025 10:30:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(ForecastReport):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=90=A5=E6=94=B6=E4=B8=8E=E5=88=A9=E6=B6=A6=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=9B=BE=E4=BE=8B=E9=A2=9C=E8=89=B2=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 legend.data 中明确指定各系列的颜色 - 营业总收入: 金色 (CHART_COLORS.income) - 归母净利润: 橙金色 (CHART_COLORS.profit) - 营收增长率: 翠绿色 (CHART_COLORS.growth) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../ForecastReport/components/IncomeProfitGrowthChart.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/Company/components/ForecastReport/components/IncomeProfitGrowthChart.tsx b/src/views/Company/components/ForecastReport/components/IncomeProfitGrowthChart.tsx index 0e33b2e8..9c99bdfe 100644 --- a/src/views/Company/components/ForecastReport/components/IncomeProfitGrowthChart.tsx +++ b/src/views/Company/components/ForecastReport/components/IncomeProfitGrowthChart.tsx @@ -61,7 +61,11 @@ const IncomeProfitGrowthChart: React.FC = ({ }, legend: { ...BASE_CHART_CONFIG.legend, - data: ['营业总收入', '归母净利润', '营收增长率'], + data: [ + { name: '营业总收入', itemStyle: { color: CHART_COLORS.income } }, + { name: '归母净利润', itemStyle: { color: CHART_COLORS.profit } }, + { name: '营收增长率', itemStyle: { color: CHART_COLORS.growth } }, + ], bottom: 0, }, grid: {