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

View File

@@ -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,
},
},
],
},
],
};
}

View File

@@ -174,6 +174,7 @@ declare global {
const IconTablerMathAvg: typeof import('~icons/tabler/math-avg.jsx')['default']
const IconTablerMathXDivideY: typeof import('~icons/tabler/math-x-divide-y.jsx')['default']
const IconTablerMaximize: typeof import('~icons/tabler/maximize.jsx')['default']
const IconTablerMinus: typeof import('~icons/tabler/minus.jsx')['default']
const IconTablerMoneybag: typeof import('~icons/tabler/moneybag.jsx')['default']
const IconTablerMoodDollar: typeof import('~icons/tabler/mood-dollar.jsx')['default']
const IconTablerMoodSadDizzy: typeof import('~icons/tabler/mood-sad-dizzy.jsx')['default']
@@ -187,6 +188,7 @@ declare global {
const IconTablerPlayCard: typeof import('~icons/tabler/play-card.jsx')['default']
const IconTablerPlayerPauseFilled: (typeof import("~icons/tabler/player-pause-filled.jsx"))["default"]
const IconTablerPlayerPlayFilled: (typeof import("~icons/tabler/player-play-filled.jsx"))["default"]
const IconTablerPlus: typeof import('~icons/tabler/plus.jsx')['default']
const IconTablerQrCode: typeof import('~icons/tabler/qr-code.jsx')['default']
const IconTablerQrcode: typeof import('~icons/tabler/qrcode.jsx')['default']
const IconTablerRandom2: typeof import('~icons/tabler/random2.jsx')['default']
@@ -211,6 +213,7 @@ declare global {
const IconTablerSettings: typeof import('~icons/tabler/settings.jsx')['default']
const IconTablerSettingsFilled: typeof import('~icons/tabler/settings-filled.jsx')['default']
const IconTablerShare: typeof import('~icons/tabler/share.jsx')['default']
const IconTablerShredder: typeof import('~icons/tabler/shredder.jsx')['default']
const IconTablerSlash: typeof import('~icons/tabler/slash.jsx')['default']
const IconTablerSparkle: typeof import('~icons/tabler/sparkle.jsx')['default']
const IconTablerSparkles: typeof import('~icons/tabler/sparkles.jsx')['default']