mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-26 07:39:59 -07:00
website: update cohorts colors
This commit is contained in:
@@ -1661,19 +1661,19 @@ function createColors(dark) {
|
||||
up_to_1d: lightRed,
|
||||
up_to_1w: red,
|
||||
up_to_1m: orange,
|
||||
up_to_2m: orange,
|
||||
up_to_3m: orange,
|
||||
up_to_4m: orange,
|
||||
up_to_5m: orange,
|
||||
up_to_6m: orange,
|
||||
up_to_1y: orange,
|
||||
up_to_2y: orange,
|
||||
up_to_3y: orange,
|
||||
up_to_4y: orange,
|
||||
up_to_5y: orange,
|
||||
up_to_2m: amber,
|
||||
up_to_3m: yellow,
|
||||
up_to_4m: lime,
|
||||
up_to_5m: green,
|
||||
up_to_6m: teal,
|
||||
up_to_1y: sky,
|
||||
up_to_2y: indigo,
|
||||
up_to_3y: violet,
|
||||
up_to_4y: purple,
|
||||
up_to_5y: red,
|
||||
up_to_7y: orange,
|
||||
up_to_10y: orange,
|
||||
up_to_15y: orange,
|
||||
up_to_10y: amber,
|
||||
up_to_15y: yellow,
|
||||
from_10y_to_15y: purple,
|
||||
from_7y_to_10y: violet,
|
||||
from_5y_to_7y: indigo,
|
||||
@@ -1705,6 +1705,9 @@ function createColors(dark) {
|
||||
epoch_3: yellow,
|
||||
epoch_4: green,
|
||||
epoch_5: blue,
|
||||
highly_liquid: red,
|
||||
liquid: lime,
|
||||
illiquid: cyan,
|
||||
};
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -3615,20 +3615,18 @@ function createPartialOptions(colors) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Object} args
|
||||
* @param {TimeScale} args.scale
|
||||
* @param {Color} args.color
|
||||
* @param {TimeScale} scale
|
||||
* @returns {PartialOptionsGroup}
|
||||
*/
|
||||
function createLiquidityOptions({ scale, color }) {
|
||||
function createLiquidityOptions(scale) {
|
||||
return createAddressCohortOptionGroups({
|
||||
scale,
|
||||
name: `Split By Liquidity`,
|
||||
list: groups.liquidities.map(({ name, id }) => ({
|
||||
list: groups.liquidities.map(({ name, id, key }) => ({
|
||||
name,
|
||||
title: name,
|
||||
scale,
|
||||
color,
|
||||
color: colors[key],
|
||||
datasetId: id,
|
||||
})),
|
||||
});
|
||||
@@ -4805,10 +4803,7 @@ function createPartialOptions(colors) {
|
||||
}),
|
||||
createHodlersOptions("date"),
|
||||
createAddressesOptions("date"),
|
||||
createLiquidityOptions({
|
||||
scale: "date",
|
||||
color: colors.bitcoin,
|
||||
}),
|
||||
createLiquidityOptions("date"),
|
||||
createCointimeOptions("date"),
|
||||
],
|
||||
},
|
||||
@@ -4828,10 +4823,7 @@ function createPartialOptions(colors) {
|
||||
}),
|
||||
createHodlersOptions("height"),
|
||||
createAddressesOptions("height"),
|
||||
createLiquidityOptions({
|
||||
scale: "height",
|
||||
color: colors.bitcoin,
|
||||
}),
|
||||
createLiquidityOptions("height"),
|
||||
createCointimeOptions("height"),
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user