11 references to ValueDirectionChange
Aspire.Dashboard (11)
Components\Controls\Chart\MetricTable.razor.cs (11)
160var percentiles = new SortedDictionary<int, (string Name, double? Value, ValueDirectionChange Direction)>(); 271private static ValueDirectionChange GetDirectionChange(double? comparisonResult) 275return ValueDirectionChange.Up; 278return comparisonResult < 0 ? ValueDirectionChange.Down : ValueDirectionChange.Constant; 300public required ValueDirectionChange? ValueChange { get; init; } 305public required SortedDictionary<int, (string Name, double? Value, ValueDirectionChange Direction)> Percentiles { get; init; } 315private (Icon Icon, string Title)? GetIconAndTitleForDirection(ValueDirectionChange? directionChange) 319ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(ControlsStrings.MetricTableValueIncreased)]), 320ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(ControlsStrings.MetricTableValueDecreased)]), 321ValueDirectionChange.Constant => (new Icons.Filled.Size16.ArrowCircleRight().WithColor(Color.Info), Loc[nameof(ControlsStrings.MetricTableValueNoChange)]),