mirror of
https://github.com/henrygd/beszel.git
synced 2026-08-16 07:17:46 +02:00
update color
This commit is contained in:
@@ -40,7 +40,7 @@ export function BatteryChart({
|
||||
const dataPoints = batteryNames.map((name, index) => ({
|
||||
label: name,
|
||||
dataKey: ({ stats }: SystemStatsRecord) => stats?.bats?.[name],
|
||||
color: `hsl(${(index * 360) / batteryNames.length}, 60%, 55%)`,
|
||||
color: `hsl(${(index * 360 + 226) / batteryNames.length}, 65%, 52%)`,
|
||||
}))
|
||||
return (
|
||||
<ChartCard
|
||||
|
||||
Reference in New Issue
Block a user