Gauge Fraction

Gauge Fraction

Function: a!gaugeFraction()

Displays text in a fractional format for use within the gauge field primaryText parameter.

Parameters

Name Keyword Types Description

Denominator

denominator

Number (Integer)

Value to display as the bottom portion of the fraction. Value cannot be negative. Default: 100. Numerator is calculated automatically based on denominator and fill percentage.

This component captures the percentage value from its parent gauge and automatically calculates the numerator based on the provided denominator, rounding to an integer.

Example

1
2
3
4
5
=a!gaugeField(
  label: "Evaluations Completed",
  percentage: (25 / 26) * 100,
  primarytext: a!gaugeFraction(denominator: 26)
)

Displays the following:

Gauge Fraction Example

The following patterns include usage of the Gauge Fraction.

FEEDBACK