global: snapshot

This commit is contained in:
nym21
2026-03-16 11:50:07 +01:00
parent bdb0c0878e
commit bc06567bb0
2 changed files with 2 additions and 35 deletions

View File

@@ -170,7 +170,6 @@ export function satsBtcUsdFrom({ source, key, name, color, defaultActive }) {
});
}
/**
* Create coinbase/subsidy/fee series from separate sources
* @param {Object} args
@@ -390,38 +389,6 @@ export function priceRatioPercentilesTree({
];
}
/**
* Create grouped Price + Ratio charts overlaying multiple series
* @param {Object} args
* @param {{ name: string, color?: Color, pattern: AnyPricePattern & { ratio: AnyMetricPattern } }[]} args.list
* @param {string} args.title
* @returns {PartialOptionsTree}
*/
export function groupedSimplePriceRatioTree({ list, title }) {
return [
{
name: "Price",
title,
top: list.map(({ name, color, pattern }) =>
price({ metric: pattern, name, color }),
),
},
{
name: "Ratio",
title: `${title} Ratio`,
bottom: list.map(({ name, color, pattern }) =>
baseline({
metric: pattern.ratio,
name,
color,
unit: Unit.ratio,
base: 1,
}),
),
},
];
}
/**
* Create coinbase/subsidy/fee rolling sum series from separate sources
* @param {Object} args