Add configurable decimal option to single stat widget
What does this MR do and why?
This MR adds a new option for single stat widgets to be used on the Product Analytics dashboards.
If the decimalPlaces
value is specified in the visualization YML file, the single stat widget will use that as the value for animate-decimal-places
. If not provided, it will default to 0 decimal places (so whole numbers).
Addresses #387532 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Dashboard with various decimal places:
One decimal place specified:
Two decimal places specified:
0 decimal places specified if nothing specified:
Five decimal places specified:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.