Components\Controls\Chart\MetricTable.razor.cs (10)
154var percentiles = new SortedDictionary<int, (string Name, double? Value, ValueDirectionChange Direction)>();
258private static ValueDirectionChange GetDirectionChange(double? comparisonResult)
262return ValueDirectionChange.Up;
265return comparisonResult < 0 ? ValueDirectionChange.Down : ValueDirectionChange.Constant;
292public required SortedDictionary<int, (string Name, double? Value, ValueDirectionChange Direction)> Percentiles { get; init; }
302private (Icon Icon, string Title)? GetIconAndTitleForDirection(ValueDirectionChange? directionChange)
306ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(ControlsStrings.MetricTableValueIncreased)]),
307ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(ControlsStrings.MetricTableValueDecreased)]),
308ValueDirectionChange.Constant => (new Icons.Filled.Size16.ArrowCircleRight().WithColor(Color.Info), Loc[nameof(ControlsStrings.MetricTableValueNoChange)]),