mirror of
https://github.com/henrygd/beszel.git
synced 2026-08-19 08:47:46 +02:00
update color
This commit is contained in:
@@ -40,7 +40,7 @@ export function BatteryChart({
|
|||||||
const dataPoints = batteryNames.map((name, index) => ({
|
const dataPoints = batteryNames.map((name, index) => ({
|
||||||
label: name,
|
label: name,
|
||||||
dataKey: ({ stats }: SystemStatsRecord) => stats?.bats?.[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 (
|
return (
|
||||||
<ChartCard
|
<ChartCard
|
||||||
|
|||||||
Reference in New Issue
Block a user