Skip to content

arlas-web-components / Exports / MetricComponent

Class: MetricComponent

Implements

  • OnInit
  • OnChanges

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MetricComponent()

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:58

Properties

NUMBER_FORMAT_CHAR

NUMBER_FORMAT_CHAR: string = NUMBER_FORMAT_CHAR

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:56


afterValue

afterValue: string = ''

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:43


approximateValue

approximateValue: boolean = false

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:47


beforeValue

beforeValue: string = ''

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:41


chartWidth

chartWidth: any = null

Input

: Angular

Description

Chart's width. If not specified, the chart takes the component's container width.

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:53


customizedCssClass

customizedCssClass: string

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:44


displayedValue

displayedValue: string | number = '0'

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:55


shortValue

shortValue: boolean = false

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:46


value

value: number

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:42


valuePrecision

valuePrecision: number = 2

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:45

Methods

ngOnChanges

ngOnChanges(changes): void

Parameters

Name Type
changes SimpleChanges

Returns

void

Implementation of

OnChanges.ngOnChanges

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:66


ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:60


getMetricJsonSchema

Static getMetricJsonSchema(): Object

Returns

Object

Json schema of the donut component for configuration

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:80


round

Static round(value, precision): number

Parameters

Name Type
value any
precision any

Returns

number

Defined in

projects/arlas-components/src/lib/components/metric/metric.component.ts:86