From 2affb8296eb2074494466711ec626a3ebc8ff82f Mon Sep 17 00:00:00 2001 From: d266377 Date: Fri, 30 Jan 2026 14:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=81=E5=8A=BF=E6=84=9F=E7=9F=A5=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0-=E5=BC=80=E6=BA=90=E7=94=9F=E6=80=81=E4=B8=8E?= =?UTF-8?q?=E8=B4=A1=E7=8C=AE=E4=BB=B7=E5=80=BC=E5=85=A8=E6=99=AF-?= =?UTF-8?q?=E9=AB=98=E6=A0=A1=E5=BC=80=E6=BA=90=E7=A4=BE=E5=9B=A2/?= =?UTF-8?q?=E4=BF=B1=E4=B9=90=E9=83=A8=E6=95=B0=E9=87=8F=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/UniversityClubStatsChart.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/Jyh/ecosystem/components/UniversityClubStatsChart.vue b/src/views/Jyh/ecosystem/components/UniversityClubStatsChart.vue index 753b48e..7dc0ad7 100644 --- a/src/views/Jyh/ecosystem/components/UniversityClubStatsChart.vue +++ b/src/views/Jyh/ecosystem/components/UniversityClubStatsChart.vue @@ -262,13 +262,23 @@ const initCommunityChart = () => { barCategoryGap: '30%', itemStyle: { color: (params: any) => { - // 根据排名使用不同颜色 + // 为每个柱状图提供唯一颜色 const colors = [ ['#3b82f6', '#60a5fa'], // 蓝色 ['#8b5cf6', '#a78bfa'], // 紫色 ['#ec4899', '#f472b6'], // 粉色 ['#10b981', '#34d399'], // 绿色 - ['#f59e0b', '#fbbf24'] // 橙色 + ['#f59e0b', '#fbbf24'], // 橙色 + ['#ef4444', '#fca5a5'], // 红色 + ['#06b6d4', '#7dd3fc'], // 青色 + ['#84cc16', '#a3e635'], // 黄绿色 + ['#f97316', '#fb923c'], // 橙红色 + ['#6366f1', '#818cf8'], // 靛蓝色 + ['#14b8a6', '#2dd4bf'], // 翠绿色 + ['#f43f5e', '#f9a8d4'], // 玫红 + ['#a855f7', '#c084fc'], // 紫罗兰 + ['#d946ef', '#e879f9'], // 梅花色 + ['#0ea5e9', '#38bdf8'] // 天蓝色 ]; const colorPair = colors[params.dataIndex % colors.length]; return new echarts.graphic.LinearGradient(0, 1, 0, 0, [