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