10 references to ValueDirectionChange
Aspire.Dashboard (10)
Components\Controls\Chart\MetricTable.razor.cs (10)
156var percentiles = new SortedDictionary<int, (string Name, double? Value, ValueDirectionChange Direction)>(); 260private static ValueDirectionChange GetDirectionChange(double? comparisonResult) 264return ValueDirectionChange.Up; 267return comparisonResult < 0 ? ValueDirectionChange.Down : ValueDirectionChange.Constant; 294public required SortedDictionary<int, (string Name, double? Value, ValueDirectionChange Direction)> Percentiles { get; init; } 304private (Icon Icon, string Title)? GetIconAndTitleForDirection(ValueDirectionChange? directionChange) 308ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(ControlsStrings.MetricTableValueIncreased)]), 309ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(ControlsStrings.MetricTableValueDecreased)]), 310ValueDirectionChange.Constant => (new Icons.Filled.Size16.ArrowCircleRight().WithColor(Color.Info), Loc[nameof(ControlsStrings.MetricTableValueNoChange)]),