add Coefficient of Variation to statistics data on data table tab and value metric on charts of insights explorer

This commit is contained in:
MaysWind
2026-03-08 17:24:08 +08:00
parent 282b74c95e
commit 0b7471879d
22 changed files with 45 additions and 10 deletions
+3 -1
View File
@@ -268,7 +268,8 @@ export enum TransactionExplorerValueMetricType {
SourceAmountRange = 'sourceAmountRange',
SourceAmountInterquartileRange = 'sourceAmountInterquartileRange',
SourceAmountVariance = 'sourceAmountVariance',
SourceAmountStandardDeviation = 'sourceAmountStandardDeviation'
SourceAmountStandardDeviation = 'sourceAmountStandardDeviation',
SourceAmountCoefficientOfVariation = 'sourceAmountCoefficientOfVariation'
}
export class TransactionExplorerValueMetric implements NameValue {
@@ -286,6 +287,7 @@ export class TransactionExplorerValueMetric implements NameValue {
public static readonly SourceAmountInterquartileRange = new TransactionExplorerValueMetric('Interquartile Range (Q3 - Q1)', TransactionExplorerValueMetricType.SourceAmountInterquartileRange, true, true);
public static readonly SourceAmountVariance = new TransactionExplorerValueMetric('Variance', TransactionExplorerValueMetricType.SourceAmountVariance, false, false);
public static readonly SourceAmountStandardDeviation = new TransactionExplorerValueMetric('Standard Deviation', TransactionExplorerValueMetricType.SourceAmountStandardDeviation, false, false);
public static readonly SourceAmountCoefficientOfVariation = new TransactionExplorerValueMetric('Coefficient of Variation', TransactionExplorerValueMetricType.SourceAmountCoefficientOfVariation, false, false);
public static readonly Default = TransactionExplorerValueMetric.SourceAmountSum;