website: update cohorts colors

This commit is contained in:
k
2024-11-02 00:59:57 +01:00
parent f258ef1011
commit ca42c266ef
2 changed files with 21 additions and 26 deletions
+15 -12
View File
@@ -1661,19 +1661,19 @@ function createColors(dark) {
up_to_1d: lightRed, up_to_1d: lightRed,
up_to_1w: red, up_to_1w: red,
up_to_1m: orange, up_to_1m: orange,
up_to_2m: orange, up_to_2m: amber,
up_to_3m: orange, up_to_3m: yellow,
up_to_4m: orange, up_to_4m: lime,
up_to_5m: orange, up_to_5m: green,
up_to_6m: orange, up_to_6m: teal,
up_to_1y: orange, up_to_1y: sky,
up_to_2y: orange, up_to_2y: indigo,
up_to_3y: orange, up_to_3y: violet,
up_to_4y: orange, up_to_4y: purple,
up_to_5y: orange, up_to_5y: red,
up_to_7y: orange, up_to_7y: orange,
up_to_10y: orange, up_to_10y: amber,
up_to_15y: orange, up_to_15y: yellow,
from_10y_to_15y: purple, from_10y_to_15y: purple,
from_7y_to_10y: violet, from_7y_to_10y: violet,
from_5y_to_7y: indigo, from_5y_to_7y: indigo,
@@ -1705,6 +1705,9 @@ function createColors(dark) {
epoch_3: yellow, epoch_3: yellow,
epoch_4: green, epoch_4: green,
epoch_5: blue, epoch_5: blue,
highly_liquid: red,
liquid: lime,
illiquid: cyan,
}; };
} }
/** /**
+6 -14
View File
@@ -3615,20 +3615,18 @@ function createPartialOptions(colors) {
} }
/** /**
* @param {Object} args * @param {TimeScale} scale
* @param {TimeScale} args.scale
* @param {Color} args.color
* @returns {PartialOptionsGroup} * @returns {PartialOptionsGroup}
*/ */
function createLiquidityOptions({ scale, color }) { function createLiquidityOptions(scale) {
return createAddressCohortOptionGroups({ return createAddressCohortOptionGroups({
scale, scale,
name: `Split By Liquidity`, name: `Split By Liquidity`,
list: groups.liquidities.map(({ name, id }) => ({ list: groups.liquidities.map(({ name, id, key }) => ({
name, name,
title: name, title: name,
scale, scale,
color, color: colors[key],
datasetId: id, datasetId: id,
})), })),
}); });
@@ -4805,10 +4803,7 @@ function createPartialOptions(colors) {
}), }),
createHodlersOptions("date"), createHodlersOptions("date"),
createAddressesOptions("date"), createAddressesOptions("date"),
createLiquidityOptions({ createLiquidityOptions("date"),
scale: "date",
color: colors.bitcoin,
}),
createCointimeOptions("date"), createCointimeOptions("date"),
], ],
}, },
@@ -4828,10 +4823,7 @@ function createPartialOptions(colors) {
}), }),
createHodlersOptions("height"), createHodlersOptions("height"),
createAddressesOptions("height"), createAddressesOptions("height"),
createLiquidityOptions({ createLiquidityOptions("height"),
scale: "height",
color: colors.bitcoin,
}),
createCointimeOptions("height"), createCointimeOptions("height"),
], ],
}, },