Skip to content

arlas-web-components / Exports / FormatLegendPipe

Class: FormatLegendPipe

Implements

  • PipeTransform

Table of contents

Constructors

Methods

Constructors

constructor

new FormatLegendPipe(collectionService)

Parameters

Name Type
collectionService CollectionService

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:55

Methods

buildInterpolatedParams

buildInterpolatedParams(params, metric, field, normalized, normalizedKey): LegendParamsResult

Parameters

Name Type
params LegendParamsResult
metric string
field string
normalized string
normalizedKey string

Returns

LegendParamsResult

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:107


containsMetrics

containsMetrics(value): boolean

Parameters

Name Type
value string

Returns

boolean

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:160


getField

getField(valueSplit): string

Parameters

Name Type
valueSplit string[]

Returns

string

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:148


getMetric

getMetric(valueSplit): string

Parameters

Name Type
valueSplit string[]

Returns

string

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:142


isMetrics

isMetrics(metrics): boolean

Parameters

Name Type
metrics string

Returns

boolean

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:156


transform

transform(field): LegendParamsResult

Parameters

Name Type
field string

Returns

LegendParamsResult

Implementation of

PipeTransform.transform

Defined in

projects/arlas-components/src/lib/pipes/format-legend/format-legend.pipe.ts:66