mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Legend: Updates display name for Last (not null) to just Last* (#35633)
* Legend: Updates display name for Last (not null) to just Last* * added description * Removed the asterix * Added back * suffix
This commit is contained in:
@@ -129,7 +129,7 @@ export function reduceField(options: ReduceFieldOptions): FieldCalcs {
|
||||
export const fieldReducers = new Registry<FieldReducerInfo>(() => [
|
||||
{
|
||||
id: ReducerID.lastNotNull,
|
||||
name: 'Last (not null)',
|
||||
name: 'Last *',
|
||||
description: 'Last non-null value',
|
||||
standard: true,
|
||||
aliasIds: ['current'],
|
||||
@@ -138,14 +138,14 @@ export const fieldReducers = new Registry<FieldReducerInfo>(() => [
|
||||
{
|
||||
id: ReducerID.last,
|
||||
name: 'Last',
|
||||
description: 'Last Value',
|
||||
description: 'Last value',
|
||||
standard: true,
|
||||
reduce: calculateLast,
|
||||
},
|
||||
{ id: ReducerID.first, name: 'First', description: 'First Value', standard: true, reduce: calculateFirst },
|
||||
{
|
||||
id: ReducerID.firstNotNull,
|
||||
name: 'First (not null)',
|
||||
name: 'First',
|
||||
description: 'First non-null value',
|
||||
standard: true,
|
||||
reduce: calculateFirstNotNull,
|
||||
|
||||
@@ -16,6 +16,11 @@ export interface DisplayValue extends FormattedValue {
|
||||
*/
|
||||
color?: string;
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* Used in limited scenarios like legend reducer calculations
|
||||
*/
|
||||
description?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user