Widget Tricks - Animations

Animated KPI

Animate your KPI with ods-timer.

The KPI is computed with ods-aggregation. For more information about how to compute metrics, see ods-aggregation resource.

Animation: You can change the speed of the animation by changing 2 variables:

nbticks: number of steps to change the KPI. High value = many steps before reaching the final KPI.

delay: delay between each tick. High delay = slow animation.

Animated KPI with auto-reload

Animate your KPI with ods-timer and add an auto-reload feature.

The KPI is computed with ods-aggregation. For more information about how to compute metrics, see ods-aggregation resource.

Animation: You can change the speed of the animation by changing 2 variables:

nbticks: number of steps to change the KPI. High value = many steps before reaching the final KPI.

delay: delay between each tick. High delay = slow animation.

You change also change the delay between 2 reloads by changing the variable reloadeverynbtick. High value = long delay betweens 2 reloads.

Animated KPI with a gauge

Animate your percentage KPI with ods-gauge. The percentage is computed with 2 ods-aggregation : one for value, and one for the max. For more information about how to compute metrics, see ods-aggregation resource.

These 2 aggregations are then used in ods-gauge, in 2 parameters : value and max.

Animated KPI with a gauge and auto-reload

Animate your percentage KPI with ods-gauge and add an auto-reload feature.

The percentage is computed with 2 ods-aggregation : one for value, and one for the max. For more information about how to compute metrics, see ods-aggregation resource.

These 2 aggregations are used in an AngularJS expression line 28 to set the value and the max of ods-gauge filled in by ods-timer.

Animation: You can change the speed of the animation by changing 2 variables:

nbticks: number of steps to change the KPI. High value = many steps before reaching the final KPI.

delay: delay between each tick. High delay = slow animation.

You change also change the delay between 2 reloads by changing the variable reloadeverynbtick. High value = long delay betweens 2 reloads.