diff --git a/ui/src/app/common/utils.service.js b/ui/src/app/common/utils.service.js index de5fef38bb..b8a98a8c4c 100644 --- a/ui/src/app/common/utils.service.js +++ b/ui/src/app/common/utils.service.js @@ -441,6 +441,12 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t settings: {}, _hash: Math.random() } + if (keyInfo.units) { + dataKey.units = keyInfo.units; + } + if (angular.isDefined(keyInfo.decimals)) { + dataKey.decimals = keyInfo.decimals; + } if (keyInfo.color) { dataKey.color = keyInfo.color; } else {