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:57

Properties

NUMBER_FORMAT_CHAR

NUMBER_FORMAT_CHAR: string = NUMBER_FORMAT_CHAR

Defined in

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


afterValue

afterValue: string = ''

Defined in

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


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:52


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:54


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:65


ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

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


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:79


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:85