From 50e0f500cf4b461a444f86f581d093bf62d07c2f Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 9 Oct 2024 15:53:49 +0800 Subject: [PATCH] fix: missing stroke color --- app/[locale]/(main)/ClientComponents/NetworkChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/[locale]/(main)/ClientComponents/NetworkChart.tsx b/app/[locale]/(main)/ClientComponents/NetworkChart.tsx index 1144a1d..c1732c9 100644 --- a/app/[locale]/(main)/ClientComponents/NetworkChart.tsx +++ b/app/[locale]/(main)/ClientComponents/NetworkChart.tsx @@ -54,7 +54,7 @@ export function NetworkChartClient({ server_id }: { server_id: number }) { ...config, [key]: { label: key, - color: `hsl(var(--chart-${index + 1}))`, + color: `hsl(var(--chart-${(index % 5) + 1}))`, }, }; }, {} as ChartConfig);