arlas-web-components > "components/metric/metric.component" > MetricComponent

Class: MetricComponent

Hierarchy

MetricComponent

Implements

  • OnInit
  • OnChanges

Index

Constructors

Properties

Methods


Constructors

constructor

new MetricComponent(): MetricComponent

Defined in components/metric/metric.component.ts:55

Returns: MetricComponent


Properties

NUMBER_FORMAT_CHAR

● NUMBER_FORMAT_CHAR: string = NUMBER_FORMAT_CHAR

Defined in components/metric/metric.component.ts:55


afterValue

● afterValue: string = ""

Defined in components/metric/metric.component.ts:43


beforeValue

● beforeValue: string = ""

Defined in components/metric/metric.component.ts:41


chartWidth

● chartWidth: any = null

Defined in components/metric/metric.component.ts:52


customizedCssClass

● customizedCssClass: string

Defined in components/metric/metric.component.ts:44


displayedValue

● displayedValue: string | number = "0"

Defined in components/metric/metric.component.ts:54


shortValue

● shortValue: boolean = false

Defined in components/metric/metric.component.ts:46


value

● value: number

Defined in components/metric/metric.component.ts:42


valuePrecision

● valuePrecision: number = 2

Defined in components/metric/metric.component.ts:45


Methods

ngOnChanges

ngOnChanges(changes: SimpleChanges): void

Defined in components/metric/metric.component.ts:65

Parameters:

Name Type
changes SimpleChanges

Returns: void


ngOnInit

ngOnInit(): void

Defined in components/metric/metric.component.ts:59

Returns: void


<Static> getMetricJsonSchema

getMetricJsonSchema(): Object

Defined in components/metric/metric.component.ts:79

Returns: Object Json schema of the donut component for configuration


<Static> round

round(value: any, precision: any): number

Defined in components/metric/metric.component.ts:85

Parameters:

Name Type
value any
precision any

Returns: number