global: snapshot

This commit is contained in:
nym21
2026-03-18 21:04:12 +01:00
parent 92e1a0ccaf
commit d8b55340f7
16 changed files with 215 additions and 143 deletions

View File

@@ -231,31 +231,15 @@ export function satsBtcUsdFullTree({ pattern, name, title, color }) {
title,
bottom: satsBtcUsd({ pattern: pattern.base, name, color }),
},
{
name: "Sums",
tree: [
{
name: "Compare",
title: `${title} Rolling`,
bottom: ROLLING_WINDOWS.flatMap((w) =>
satsBtcUsd({
pattern: pattern.sum[w.key],
name: w.name,
color: w.color,
}),
),
},
...ROLLING_WINDOWS.map((w) => ({
name: w.name,
title: `${title} (${w.name})`,
bottom: satsBtcUsd({
pattern: pattern.sum[w.key],
name: w.name,
color: w.color,
}),
})),
],
},
...ROLLING_WINDOWS.map((w) => ({
name: w.name,
title: `${title} ${w.title} Sum`,
bottom: satsBtcUsd({
pattern: pattern.sum[w.key],
name: w.name,
color: w.color,
}),
})),
{
name: "Cumulative",
title: `${title} (Total)`,