Skip to content

KPIView


When assigning a rule to a property of KPIView, the rule will be passed an instance of the following proxy class as an argument:


KPIView Properties

Property Type Required
Label string No
LeftMetric string No
LeftUnit string No
RightMetric string No
RightUnit string No
Styles object No

Label

This is an optional label, displayed beneath the KPI components.

  • type: string

LeftMetric

The KPI metric value displays at the left side.

  • type: string

LeftUnit

The KPI unit value displays at the left side.

  • type: string

RightMetric

The KPI metric value displays at the right side.

  • type: string

RightUnit

The KPI unit value displays at the right side.

  • type: string

Styles

  • type: object with following properties.
Property Type Required Default
Label string No
RightMetric string No
RightUnit string No
LeftMetric string No
LeftUnit string No

Label

The string value is a style class name of Label.

RightMetric

The string value is a style class name of RightMetric. On the Android platform, the RightMetric must be defined for displaying the Metric view.

RightUnit

The string value is a style class name of RightUnit.

LeftMetric

The string value is a style class name of LeftMetric. On the Android platform, the LeftMetric is dependent on the RightMetric. If the RightMetric is not defined, the LeftMetric will not be displayed even if the LeftMetric is defined in the KPIView.

LeftUnit

The string value is a style class name of LeftUnit.