global: add cohorts by entry

This commit is contained in:
nym21
2026-06-14 00:40:18 +02:00
parent 297fc3b855
commit c85da92cbc
44 changed files with 1927 additions and 19567 deletions
@@ -33,6 +33,7 @@ export function buildCohortData() {
AMOUNT_RANGE_NAMES,
SPENDABLE_TYPE_NAMES,
CLASS_NAMES,
ENTRY_NAMES,
PROFITABILITY_RANGE_NAMES,
PROFIT_NAMES,
LOSS_NAMES,
@@ -201,6 +202,18 @@ export function buildCohortData() {
tree: utxoCohorts.class[key],
}));
const entryColors = {
discount: colors.arr[11],
premium: colors.arr[0],
};
const entry = entries(ENTRY_NAMES).map(([key, names]) => ({
name: names.short,
title: `UTXOs ${names.long}`,
color: entryColors[key],
tree: utxoCohorts.entry[key],
}));
const { range, profit, loss } = utxoCohorts.profitability;
const profitabilityRange = entries(PROFITABILITY_RANGE_NAMES).map(
@@ -242,6 +255,7 @@ export function buildCohortData() {
typeAddressable,
typeOther,
class: class_,
entry,
profitabilityRange,
profitabilityProfit,
profitabilityLoss,
+1 -1
View File
@@ -226,7 +226,7 @@ function historicalSubSection(name, periods) {
* @returns {PartialOptionsGroup}
*/
export function createMarketSection() {
const { market, supply, cohorts, prices, indicators } = brk.series;
const { market, supply, cohorts, price: prices, indicators } = brk.series;
const {
movingAverage: ma,
ath,
+15
View File
@@ -5,6 +5,7 @@ import {
createCohortFolderAll,
createCohortFolderFull,
createCohortFolderWithAdjusted,
createCohortFolderWithNupl,
createCohortFolderLongTerm,
createCohortFolderAgeRangeWithMatured,
createCohortFolderBasicWithMarketCap,
@@ -53,6 +54,7 @@ export function createPartialOptions() {
overAge,
ageRange,
epoch,
entry,
utxosOverAmount,
addressesOverAmount,
utxosUnderAmount,
@@ -99,6 +101,19 @@ export function createPartialOptions() {
createCohortFolderLongTerm(termLong),
{
name: "Entry",
tree: [
createGroupedCohortFolderWithNupl({
name: "Compare",
title: "Veteran vs Rookie",
list: entry,
all: cohortAll,
}),
...entry.map(createCohortFolderWithNupl),
],
},
{
name: "UTXO Age",
tree: [