fix(ForecastReport): 修复营收与利润趋势图表图例颜色不一致
- 在 legend.data 中明确指定各系列的颜色 - 营业总收入: 金色 (CHART_COLORS.income) - 归母净利润: 橙金色 (CHART_COLORS.profit) - 营收增长率: 翠绿色 (CHART_COLORS.growth) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,11 @@ const IncomeProfitGrowthChart: React.FC<IncomeProfitGrowthChartProps> = ({
|
||||
},
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user