app: add SOPR

This commit is contained in:
k
2024-07-21 00:51:36 +02:00
parent 5611459f03
commit 180d044f5d
2 changed files with 48 additions and 0 deletions
@@ -212,6 +212,51 @@ export function createCohortPresetRealizedFolder({
},
],
},
{
scale,
name: `Value Created`,
title: `${title} Value Created`,
description: "",
icon: () => IconTablerPlus,
bottom: [
{
title: "Value",
color: colors.profit,
datasetPath: `/${scale}-to-${datasetPrefix}value-created`,
},
],
},
{
scale,
name: `Value Destroyed`,
title: `${title} Value Destroyed`,
description: "",
icon: () => IconTablerMinus,
bottom: [
{
title: "Value",
color: colors.loss,
datasetPath: `/${scale}-to-${datasetPrefix}value-destroyed`,
},
],
},
{
scale,
name: `Spent Output Profit Ratio - SOPR`,
title: `${title} Spent Output Profit Ratio`,
description: "",
icon: () => IconTablerMathXDivideY,
bottom: [
{
title: "SOPR",
datasetPath: `/${scale}-to-${datasetPrefix}spent-output-profit-ratio`,
seriesType: SeriesType.Based,
options: {
base: 1,
},
},
],
},
],
};
}