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:
Torkel Ödegaard
2021-07-01 09:43:40 +02:00
committed by GitHub
parent 483418dbb0
commit 1caaa784d9
5 changed files with 41 additions and 37 deletions

View File

@@ -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,

View File

@@ -16,6 +16,11 @@ export interface DisplayValue extends FormattedValue {
*/
color?: string;
title?: string;
/**
* Used in limited scenarios like legend reducer calculations
*/
description?: string;
}
/**